diff options
author | Yury Selivanov <yselivanov@sprymix.com> | 2015-06-04 14:16:51 (GMT) |
---|---|---|
committer | Yury Selivanov <yselivanov@sprymix.com> | 2015-06-04 14:16:51 (GMT) |
commit | 94c2263005e2597a26ef76af8bfd47168d6de42e (patch) | |
tree | ffacef37f1f035e52cdacceaae4c327ea4a587ff /Lib/test | |
parent | 53f95024d7ef25a39e70aa45ffdcefbb084821ed (diff) | |
download | cpython-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.py | 4 |
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: |