Skip to content

Commit a153ff6

Browse files
committed
forgot to not delete one tempfile
1 parent ea42fd4 commit a153ff6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

binding/python/tests/test_pt.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,7 @@ def test_pt_invalid_tensor_dict_raises_error():
106106
def test_pt_save_file_and_load_file_consistency():
107107
tensor_dict = create_gpt2_tensors_dict(1)
108108
filename = ""
109-
with tempfile.NamedTemporaryFile() as tmp:
109+
with tempfile.NamedTemporaryFile(delete=False) as tmp:
110110
filename = tmp.name
111111
save_file(tensor_dict, filename)
112112
loaded_dict = load_file(filename)

0 commit comments

Comments
 (0)