We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 6853c21 commit a5ee9efCopy full SHA for a5ee9ef
1 file changed
test/python_tests/ogr_test.py
@@ -64,7 +64,7 @@ def test_that_nonexistant_query_field_throws(**kwargs):
64
# disabled because OGR prints an annoying error: ERROR 1: Invalid Point object. Missing 'coordinates' member.
65
# def test_handling_of_null_features():
66
# ds = mapnik.Ogr(file='../data/json/null_feature.geojson',layer_by_index=0)
67
- # fs = ds.all_features()
+ # fs = iter(ds)
68
# assert len(list(fs)) == 1
69
70
# OGR plugin extent parameter
@@ -113,7 +113,7 @@ def test_ogr_empty_data_should_not_throw():
113
def test_handling_of_null_features():
114
assert True
115
ds = mapnik.Ogr(file='../data/json/null_feature.geojson',layer_by_index=0)
116
- fs = ds.all_features()
+ fs = iter(ds)
117
assert len(list(fs)) == 1
118
119
def test_geometry_type():
0 commit comments