]> git.openstreetmap.org Git - nominatim.git/commitdiff
avoid recent Python dialect
authorSarah Hoffmann <lonvia@denofr.de>
Thu, 9 Mar 2023 19:57:43 +0000 (20:57 +0100)
committerSarah Hoffmann <lonvia@denofr.de>
Thu, 9 Mar 2023 19:57:43 +0000 (20:57 +0100)
test/bdd/steps/http_responses.py

index 0a3bd3045762ce2c64ffc767d5f24974d6b7d497..22fcb01018b4a92b382aadf5cc77bb05a50b5b7c 100644 (file)
@@ -84,7 +84,8 @@ class GenericResponse:
                 assert set(r.keys()) == {'geocoding', 'geojson', '__geocoding'}, \
                        f"Unexpected keys in result: {r.keys()}"
                 check_for_attributes(r['geocoding'], 'geojson', 'absent')
-                r |= r.pop('geocoding')
+                inner = r.pop('geocoding')
+                r.update(inner)
 
 
     def assert_address_field(self, idx, field, value):