================
@@ -61,8 +61,14 @@ def test_session_save(self):
         self.assertFalse(res.Succeeded())
         raw += self.raw_transcript_builder(cmd, res)
 
-        tf = tempfile.NamedTemporaryFile()
-        output_file = tf.name
+        fd, output_file = tempfile.mkstemp()
----------------
labath wrote:

I'd just put the file into the build directory of the test 
(`self.getBuildArtifact("my_session")`). Then you don't need to worry about 
cleanups or collisions, as that directory is nuked before running the test.

https://github.com/llvm/llvm-project/pull/93833
_______________________________________________
lldb-commits mailing list
lldb-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-commits

Reply via email to