diff options
| author | Victor Stinner <victor.stinner@gmail.com> | 2014-06-27 22:14:28 (GMT) |
|---|---|---|
| committer | Victor Stinner <victor.stinner@gmail.com> | 2014-06-27 22:14:28 (GMT) |
| commit | 875dbedd28b67a753b894556592cd8f3558f19e9 (patch) | |
| tree | e604c42489318d287f18cacd961bdc73c4541141 /Lib/test/test_asyncio/test_tasks.py | |
| parent | a81088ae129f251ad4d1c2cb208ffd2e8d52ea4a (diff) | |
| parent | b9a301a348f8867f1b8adebd2e6a4d728889f66b (diff) | |
| download | cpython-875dbedd28b67a753b894556592cd8f3558f19e9.zip cpython-875dbedd28b67a753b894556592cd8f3558f19e9.tar.gz cpython-875dbedd28b67a753b894556592cd8f3558f19e9.tar.bz2 | |
(Merge 3.4) asyncio: Fix unit tests on Windows, escape filenames in regex
Diffstat (limited to 'Lib/test/test_asyncio/test_tasks.py')
| -rw-r--r-- | Lib/test/test_asyncio/test_tasks.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Lib/test/test_asyncio/test_tasks.py b/Lib/test/test_asyncio/test_tasks.py index 54b29ba..dee14b2 100644 --- a/Lib/test/test_asyncio/test_tasks.py +++ b/Lib/test/test_asyncio/test_tasks.py @@ -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)) |
