Skip to content

Commit

Permalink
use "delete" for python 3.9
Browse files Browse the repository at this point in the history
  • Loading branch information
mccalluc committed Sep 24, 2024
1 parent 279b9f4 commit 0ea41b6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion dp_creator_ii/tests/test_template.py
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ def test_make_script():
weights=[1]
)

with NamedTemporaryFile(mode='w', delete_on_close=False) as fp:
with NamedTemporaryFile(mode='w', delete=False) as fp:
fp.write(script)
fp.close()

Expand Down

0 comments on commit 0ea41b6

Please sign in to comment.