summaryrefslogtreecommitdiffstats
path: root/Lib/test
diff options
context:
space:
mode:
authorYury Selivanov <yselivanov@sprymix.com>2015-06-04 14:16:51 (GMT)
committerYury Selivanov <yselivanov@sprymix.com>2015-06-04 14:16:51 (GMT)
commit94c2263005e2597a26ef76af8bfd47168d6de42e (patch)
treeffacef37f1f035e52cdacceaae4c327ea4a587ff /Lib/test
parent53f95024d7ef25a39e70aa45ffdcefbb084821ed (diff)
downloadcpython-94c2263005e2597a26ef76af8bfd47168d6de42e.zip
cpython-94c2263005e2597a26ef76af8bfd47168d6de42e.tar.gz
cpython-94c2263005e2597a26ef76af8bfd47168d6de42e.tar.bz2
Issue 24374: Plug refleak in set_coroutine_wrapper
Diffstat (limited to 'Lib/test')
-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 670852d..e3a3304 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: