jonathansudhakar1 commented on code in PR #41318:
URL: https://github.com/apache/beam/pull/41318#discussion_r4698197103
##########
sdks/python/apache_beam/io/textio_test.py:
##########
@@ -2053,6 +2084,30 @@ def tearDown(self):
if os.path.exists(self.tempdir):
shutil.rmtree(self.tempdir)
+ def test_write_streaming_outputs_final_file_paths(self):
+ prefix = self.tempdir + '/output'
Review Comment:
Thanks, good catch. On Windows `glob.glob` joins the directory and file name
with `\\`, so the expected paths built with `'/'` didn't match. ce693c93f6a
builds the prefix with `os.path.join(self.tempdir, 'output')` instead, so the
pipeline output, the expected list and the glob result all use the native
separator. This was the only failure in the four Windows jobs (the same test
each time). I can't run Windows locally; on macOS the three new tests pass, and
the seven touched IO test modules give 268 passed, 10 skipped with the branch
merged into current master.
##########
sdks/python/apache_beam/io/textio_test.py:
##########
@@ -2053,6 +2084,30 @@ def tearDown(self):
if os.path.exists(self.tempdir):
shutil.rmtree(self.tempdir)
+ def test_write_streaming_outputs_final_file_paths(self):
+ prefix = self.tempdir + '/output'
Review Comment:
Thanks, good catch. On Windows `glob.glob` joins the directory and file name
with a backslash, so the expected paths built with `'/'` didn't match.
ce693c93f6a builds the prefix with `os.path.join(self.tempdir, 'output')`
instead, so the pipeline output, the expected list and the glob result all use
the native separator. This was the only failure in the four Windows jobs (the
same test each time). I can't run Windows locally; on macOS the three new tests
pass, and the seven touched IO test modules give 268 passed, 10 skipped with
the branch merged into current master.
--
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]