Skip to content

Commit c3975ff

Browse files
authored
Merge pull request OSGeo#11579 from rouault/autotest_fix_deprecation_warning
autotest: fix 'DeprecationWarning: 'count' is passed as positional argument'
2 parents efb8cc8 + 7d3f08b commit c3975ff

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

autotest/osr/osr_xml.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -180,8 +180,8 @@ def test_osr_xml_2():
180180
got = srs.ExportToXML()
181181

182182
# Strip the gml:id tags
183-
got = re.sub(r' gml:id="[^"]*"', "", got, 0)
184-
expected = re.sub(r' gml:id="[^"]*"', "", expected, 0)
183+
got = re.sub(r' gml:id="[^"]*"', "", got)
184+
expected = re.sub(r' gml:id="[^"]*"', "", expected)
185185

186186
assert got == expected
187187

0 commit comments

Comments
 (0)