Skip to content

Commit 7d3f08b

Browse files
committed
autotest: fix 'DeprecationWarning: 'count' is passed as positional argument'
cf https://github.com/OSGeo/gdal/actions/runs/12615376646/job/35155360375?pr=11572
1 parent a5f476e commit 7d3f08b

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)