test: do not fail on rmtree if the cluster is uncreated
1 files changed, 2 insertions(+), 1 deletions(-) M tests/test_fixture.py
M tests/test_fixture.py +2 -1
@@ 24,7 24,8 @@ def test_engine(engine): def test_adjusted_cluster(): clusterpath = DATADIR / 'othercluster' / 'pgdb' - shutil.rmtree(clusterpath) + if clusterpath.exists(): + shutil.rmtree(clusterpath) ensure_cluster(clusterpath, postgresql_conf_options={ 'max_locks_per_transaction': 42