mirror of
https://github.com/python/cpython.git
synced 2025-07-09 20:35:26 +00:00
#27364: fix "incorrect" uses of escape character in the stdlib.
And most of the tools. Patch by Emanual Barry, reviewed by me, Serhiy Storchaka, and Martin Panter.
This commit is contained in:
parent
513d7478a1
commit
44b548dda8
83 changed files with 324 additions and 324 deletions
|
@ -891,7 +891,7 @@ class CoroutineTest(unittest.TestCase):
|
|||
return await Awaitable()
|
||||
|
||||
with self.assertRaisesRegex(
|
||||
TypeError, "__await__\(\) returned a coroutine"):
|
||||
TypeError, r"__await__\(\) returned a coroutine"):
|
||||
|
||||
run_async(foo())
|
||||
|
||||
|
@ -1333,7 +1333,7 @@ class CoroutineTest(unittest.TestCase):
|
|||
|
||||
with self.assertRaisesRegex(
|
||||
TypeError,
|
||||
"async for' received an invalid object.*__aiter.*\: I"):
|
||||
r"async for' received an invalid object.*__aiter.*\: I"):
|
||||
|
||||
run_async(foo())
|
||||
|
||||
|
@ -1667,8 +1667,8 @@ class SysSetCoroWrapperTest(unittest.TestCase):
|
|||
try:
|
||||
with silence_coro_gc(), self.assertRaisesRegex(
|
||||
RuntimeError,
|
||||
"coroutine wrapper.*\.wrapper at 0x.*attempted to "
|
||||
"recursively wrap .* wrap .*"):
|
||||
r"coroutine wrapper.*\.wrapper at 0x.*attempted to "
|
||||
r"recursively wrap .* wrap .*"):
|
||||
|
||||
foo()
|
||||
finally:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue