Skip to content

Commit ea42fd4

Browse files
committed
chore: fuck github actions
1 parent b678c37 commit ea42fd4

File tree

3 files changed

+4
-5
lines changed

3 files changed

+4
-5
lines changed

binding/python/tests/test_buffer.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@
22
import struct
33

44
import torch
5-
import tempfile
65
from typing import List, Dict, Tuple
76
from itertools import chain
87

binding/python/tests/test_np.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,7 @@ def test_save_file_and_load_file_consistency():
105105
tensor_dict = create_gpt2_numpy_dict(1)
106106
filename = ""
107107
loaded_dict = {}
108-
with tempfile.NamedTemporaryFile() as tmp:
108+
with tempfile.NamedTemporaryFile(delete=False) as tmp:
109109
filename = tmp.name
110110
try:
111111
save_file(tensor_dict, filename)
@@ -117,7 +117,7 @@ def test_save_file_and_load_file_consistency():
117117

118118
def test_safe_open_access_and_metadata():
119119
tensor_dict = create_gpt2_numpy_dict(1)
120-
with tempfile.NamedTemporaryFile() as tmp:
120+
with tempfile.NamedTemporaryFile(delete=False) as tmp:
121121
filename = tmp.name
122122
# save file into tempfile
123123
save_file(tensor_dict, filename)
@@ -131,7 +131,7 @@ def test_safe_open_access_and_metadata():
131131

132132
def test_safe_open_access_with_metadata():
133133
tensor_dict = create_gpt2_numpy_dict(1)
134-
with tempfile.NamedTemporaryFile() as tmp:
134+
with tempfile.NamedTemporaryFile(delete=False) as tmp:
135135
filename = tmp.name
136136

137137
save_file(tensor_dict, filename, metadata={"hello": "world"})

binding/python/tests/test_pt.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -117,7 +117,7 @@ def test_pt_save_file_and_load_file_consistency():
117117

118118
def test_pt_safe_open_access_and_metadata():
119119
tensor_dict = create_gpt2_tensors_dict(1)
120-
with tempfile.NamedTemporaryFile() as tmp:
120+
with tempfile.NamedTemporaryFile(delete=False) as tmp:
121121
filename = tmp.name
122122
save_file(tensor_dict, filename)
123123
with safe_open(filename, "pt") as model:

0 commit comments

Comments
 (0)