HyukjinKwon commented on a change in pull request #28652:
URL: https://github.com/apache/spark/pull/28652#discussion_r430980184
##########
File path: python/pyspark/sql/tests/test_dataframe.py
##########
@@ -820,6 +822,21 @@ def test_same_semantics_error(self):
with self.assertRaisesRegexp(ValueError, "should be of
DataFrame.*int"):
self.spark.range(10).sameSemantics(1)
+ def test_input_files(self):
+ tmpPath = tempfile.mkdtemp()
Review comment:
Let's to a try-finally, and use `this_naming_rule` per PEP8.
```python
tpath = tempfile.mkdtemp()
shutil.rmtree(tpath)
try:
...
finally:
shutil.rmtree(tpath)
```
----------------------------------------------------------------
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.
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]