postgis test: ensure threaded test fails early

This commit is contained in:
Dane Springmeyer 2013-05-22 17:03:08 -07:00
parent 5aecb3c5f7
commit 5083a24f89

View file

@ -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()