Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 3 additions & 6 deletions test/python_tests/postgis_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -728,7 +728,7 @@ def create_ds():
table='test',
max_size=20,
geometry_field='geom')
fs = ds.all_features()
fs = list(ds.all_features())
eq_(len(fs), 8)

meta = ds.describe()
Expand Down Expand Up @@ -967,8 +967,7 @@ def test_psql_error_should_not_break_connection_pool():
failed = False
try:
fs = ds_bad.featureset()
for feature in fs.features:
pass
count = sum(1 for f in fs)
except RuntimeError as e:
assert 'invalid input syntax for integer' in str(e)
failed = True
Expand All @@ -977,9 +976,7 @@ def test_psql_error_should_not_break_connection_pool():

# Should be ok
fs = ds_good.featureset()
count = 0
for feature in fs.features:
count += 1
count = sum(1 for f in fs)
eq_(count, 8)

def test_psql_error_should_give_back_connections_opened_for_lower_layers_to_the_pool():
Expand Down