X-Git-Url: https://git.openstreetmap.org./nominatim.git/blobdiff_plain/f6bfadaef61a50a4ef1808b8547cc0f2a3b32d9e..21c590416854b1245866b96772fde61050c0e01a:/tests/steps/osm2pgsql_setup.py diff --git a/tests/steps/osm2pgsql_setup.py b/tests/steps/osm2pgsql_setup.py index e5198d9d..eaa14573 100644 --- a/tests/steps/osm2pgsql_setup.py +++ b/tests/steps/osm2pgsql_setup.py @@ -140,7 +140,7 @@ def osm2pgsql_load_place(step): world.osm2pgsql.sort(cmp=_sort_xml_entries) # create a OSM file in /tmp - with tempfile.NamedTemporaryFile(dir='/tmp', delete=False) as fd: + with tempfile.NamedTemporaryFile(dir='/tmp', suffix='.osm', delete=False) as fd: fname = fd.name fd.write("\n") fd.write('\n') @@ -188,7 +188,7 @@ def osm2pgsql_update_place(step): world.run_nominatim_script('setup', 'index', 'index-noanalyse') world.run_nominatim_script('setup', 'create-functions', 'create-partition-functions', 'enable-diff-updates') - with tempfile.NamedTemporaryFile(dir='/tmp', delete=False) as fd: + with tempfile.NamedTemporaryFile(dir='/tmp', suffix='.osc', delete=False) as fd: fname = fd.name fd.write("\n") fd.write('\n')