Skip to content

Commit

Permalink
force sensible file prefixes for generated test files
Browse files Browse the repository at this point in the history
libosmium needs them to detect the file type
  • Loading branch information
lonvia committed Aug 29, 2015
1 parent 71ab123 commit 8375392
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/steps/osm2pgsql_setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -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("<?xml version='1.0' encoding='UTF-8'?>\n")
fd.write('<osmChange version="0.6" generator="Osmosis 0.43.1">\n')
Expand Down

0 comments on commit 8375392

Please sign in to comment.