tvalentyn commented on a change in pull request #12452:
URL: https://github.com/apache/beam/pull/12452#discussion_r467342448
##########
File path: sdks/python/apache_beam/io/parquetio_test.py
##########
@@ -296,8 +296,10 @@ def test_sink_transform_int96(self):
path, self.SCHEMA96, num_shards=1, shard_name_template='')
def test_sink_transform(self):
- with tempfile.NamedTemporaryFile() as dst:
- path = dst.name
+ fd, path = tempfile.mkstemp()
Review comment:
You can use `tempfile.TemporaryDirectory()` to generate a fresh temp
directory and use any name as a file name within this directory with the test.
----------------------------------------------------------------
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]