summaryrefslogtreecommitdiff
path: root/Lib/test/test_coroutines.py
diff options
context:
space:
mode:
authorYury Selivanov <yselivanov@sprymix.com>2015-06-04 10:16:51 -0400
committerYury Selivanov <yselivanov@sprymix.com>2015-06-04 10:16:51 -0400
commit94c2263005e2597a26ef76af8bfd47168d6de42e (patch)
treeffacef37f1f035e52cdacceaae4c327ea4a587ff /Lib/test/test_coroutines.py
parent53f95024d7ef25a39e70aa45ffdcefbb084821ed (diff)
downloadcpython-git-94c2263005e2597a26ef76af8bfd47168d6de42e.tar.gz
Issue 24374: Plug refleak in set_coroutine_wrapper
Diffstat (limited to 'Lib/test/test_coroutines.py')
-rw-r--r--Lib/test/test_coroutines.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/Lib/test/test_coroutines.py b/Lib/test/test_coroutines.py
index 670852d20c..e3a33041c5 100644
--- a/Lib/test/test_coroutines.py
+++ b/Lib/test/test_coroutines.py
@@ -1006,10 +1006,10 @@ class SysSetCoroWrapperTest(unittest.TestCase):
sys.set_coroutine_wrapper(wrapper)
try:
- with self.assertRaisesRegex(
+ with silence_coro_gc(), self.assertRaisesRegex(
RuntimeError,
"coroutine wrapper.*\.wrapper at 0x.*attempted to "
- "recursively wrap <coroutine.*\.wrap"):
+ "recursively wrap .* wrap .*"):
foo()
finally: