itholic commented on a change in pull request #35775:
URL: https://github.com/apache/spark/pull/35775#discussion_r823128671



##########
File path: python/pyspark/testing/pandasutils.py
##########
@@ -259,7 +259,7 @@ def temp_dir(self):
     @contextmanager
     def temp_file(self):
         with self.temp_dir() as tmp:
-            yield tempfile.mktemp(dir=tmp)
+            yield tempfile.mkstemp(dir=tmp)[1]

Review comment:
       qq: Does `mkstemp` always guarantees returning the fd, name pair?? Maybe 
don't we need to check the length or something to make sure `mkstemp` returning 
the proper value ?




-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]



---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to