HyukjinKwon commented on a change in pull request #35775:
URL: https://github.com/apache/spark/pull/35775#discussion_r823241926
##########
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:
Seems like it dose:
>
[mkstemp()](https://docs.python.org/3/library/tempfile.html#tempfile.mkstemp)
returns a tuple containing an OS-level handle to an open file (as would be
returned by [os.open()](https://docs.python.org/3/library/os.html#os.open)) and
the absolute pathname of that file, in that order.
--
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]