diff --git a/tests/functional/testplan/cli/test_tpsreport.py b/tests/functional/testplan/cli/test_tpsreport.py index 13baa18d6..63184687d 100644 --- a/tests/functional/testplan/cli/test_tpsreport.py +++ b/tests/functional/testplan/cli/test_tpsreport.py @@ -23,7 +23,7 @@ ) def test_convert_roundtrip(from_cmd, input_file, to_cmd, ref_file): input_file = str(DATA_DIR / input_file) - with tempfile.NamedTemporaryFile() as f: + with tempfile.NamedTemporaryFile(delete_on_close=False) as f: subprocess.run( ["tpsreport", "convert", from_cmd, input_file, to_cmd, f.name], check=True,