TobKed commented on a change in pull request #12452:
URL: https://github.com/apache/beam/pull/12452#discussion_r468884891
##########
File path: sdks/python/apache_beam/testing/util.py
##########
@@ -334,3 +335,19 @@ def open_shards(glob_pattern, mode='rt', encoding='utf-8'):
out_file.write(in_file.read())
concatenated_file_name = out_file.name
return io.open(concatenated_file_name, mode, encoding=encoding)
+
+
+class TemporaryDirectory(object):
Review comment:
Thank you. I was not aware of them. I used this first one since it
returns path on enter.
----------------------------------------------------------------
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]