From 7d3f08b288ee69134ba0ddd84f5e4dceab9d855b Mon Sep 17 00:00:00 2001 From: Even Rouault Date: Sun, 5 Jan 2025 03:10:28 +0100 Subject: [PATCH] autotest: fix 'DeprecationWarning: 'count' is passed as positional argument' cf https://github.com/OSGeo/gdal/actions/runs/12615376646/job/35155360375?pr=11572 --- autotest/osr/osr_xml.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/autotest/osr/osr_xml.py b/autotest/osr/osr_xml.py index 88ca91240f4d..e95b568d0b08 100755 --- a/autotest/osr/osr_xml.py +++ b/autotest/osr/osr_xml.py @@ -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