Skip to content

Commit

Permalink
Merge pull request #11579 from rouault/autotest_fix_deprecation_warning
Browse files Browse the repository at this point in the history
autotest: fix 'DeprecationWarning: 'count' is passed as positional argument'
  • Loading branch information
rouault authored Jan 5, 2025
2 parents efb8cc8 + 7d3f08b commit c3975ff
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions autotest/osr/osr_xml.py
Original file line number Diff line number Diff line change
Expand Up @@ -180,8 +180,8 @@ def test_osr_xml_2():
got = srs.ExportToXML()

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

assert got == expected

Expand Down

0 comments on commit c3975ff

Please sign in to comment.