mirror of
https://github.com/python/cpython.git
synced 2025-08-04 00:48:58 +00:00
asyncio: Fix unit tests on Windows, escape filenames in regex
This commit is contained in:
parent
4d4c69dc35
commit
b9a301a348
2 changed files with 6 additions and 6 deletions
|
@ -1602,8 +1602,8 @@ class TaskTests(test_utils.TestCase):
|
|||
r' File "%s", line %s, in test_coroutine_never_yielded\n'
|
||||
r' coro = coro_noop\(\)$'
|
||||
% (re.escape(coro_noop.__qualname__),
|
||||
func_filename, func_lineno,
|
||||
tb_filename, tb_lineno))
|
||||
re.escape(func_filename), func_lineno,
|
||||
re.escape(tb_filename), tb_lineno))
|
||||
|
||||
self.assertRegex(message, re.compile(regex, re.DOTALL))
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue