TobKed commented on a change in pull request #12452:
URL: https://github.com/apache/beam/pull/12452#discussion_r467987053
##########
File path: sdks/python/apache_beam/runners/worker/log_handler_test.py
##########
@@ -87,7 +87,8 @@ def _verify_fn_log_handler(self, num_log_entries):
self.assertEqual(
'%s: %s' % (msg, num_received_log_entries), log_entry.message)
self.assertTrue(
- re.match(r'.*/log_handler_test.py:\d+', log_entry.log_location),
+ re.match(
+ r'.*(/|\\)log_handler_test.py:\d+', log_entry.log_location),
Review comment:
I had problems with `re.escape()` as well (escaped `\d` as well). For
the most clean solution I just simplified it as you suggested it.
----------------------------------------------------------------
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]