Skip to content

Commit e77db5e

Browse files
committed
replace mktemp
Signed-off-by: Tyler Burt <195370667+tburt-nv@users.noreply.github.com>
1 parent 1cb5316 commit e77db5e

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

tests/unittest/others/test_builder.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,9 @@ def test_basic_builder_flow(self):
5757
assert engine is not None
5858
refit_engine = builder.refit_engine(network, engine)
5959
assert refit_engine is not None
60-
builder.save_config(builder_config, tempfile.mktemp())
60+
with tempfile.TemporaryDirectory() as tmpdir:
61+
config_path = f"{tmpdir}/builder_config.json"
62+
builder.save_config(builder_config, config_path)
6163

6264
def test_top_level_dont_have_functional_apis(self):
6365
# This did not check all the functional apis, but should already prevent

0 commit comments

Comments
 (0)