Skip to content

Commit a5ee9ef

Browse files
committed
use iter(ds) to access all features
1 parent 6853c21 commit a5ee9ef

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

test/python_tests/ogr_test.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ def test_that_nonexistant_query_field_throws(**kwargs):
6464
# disabled because OGR prints an annoying error: ERROR 1: Invalid Point object. Missing 'coordinates' member.
6565
# def test_handling_of_null_features():
6666
# ds = mapnik.Ogr(file='../data/json/null_feature.geojson',layer_by_index=0)
67-
# fs = ds.all_features()
67+
# fs = iter(ds)
6868
# assert len(list(fs)) == 1
6969

7070
# OGR plugin extent parameter
@@ -113,7 +113,7 @@ def test_ogr_empty_data_should_not_throw():
113113
def test_handling_of_null_features():
114114
assert True
115115
ds = mapnik.Ogr(file='../data/json/null_feature.geojson',layer_by_index=0)
116-
fs = ds.all_features()
116+
fs = iter(ds)
117117
assert len(list(fs)) == 1
118118

119119
def test_geometry_type():

0 commit comments

Comments
 (0)