diff --git a/tests/python_tests/postgis_test.py b/tests/python_tests/postgis_test.py index b9d91e278..e9f0d1ca4 100644 --- a/tests/python_tests/postgis_test.py +++ b/tests/python_tests/postgis_test.py @@ -476,6 +476,10 @@ if 'postgis' in mapnik.DatasourceCache.plugin_names() \ fs = ds.all_features() def test_threaded_create(NUM_THREADS=100): + # run one to start before thread loop + # to ensure that a throw stops the test + # from running all threads + create_ds() for i in range(NUM_THREADS): t = threading.Thread(target=create_ds) t.start()