Skip to content

Commit 9c5258f

Browse files
committed
update load_map_test - avoid re-using mapnik.Map object
1 parent dbebf81 commit 9c5258f

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

test/python_tests/load_map_test.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,7 @@ def test_can_parse_xml_with_deprecated_properties():
5959
m = mapnik.Map(512, 512)
6060
strict = True
6161
mapnik.load_map(m, filename, strict)
62+
m = mapnik.Map(512, 512)
6263
base_path = os.path.dirname(filename)
6364
mapnik.load_map_from_string(
6465
m,
@@ -88,6 +89,7 @@ def test_good_files():
8889
m = mapnik.Map(512, 512)
8990
strict = True
9091
mapnik.load_map(m, filename, strict)
92+
m = mapnik.Map(512, 512)
9193
base_path = os.path.dirname(filename)
9294
with open(filename, 'rb') as f:
9395
mapnik.load_map_from_string(m, f.read(), strict, base_path)

0 commit comments

Comments
 (0)