mirror of
https://github.com/python/cpython.git
synced 2025-08-04 00:48:58 +00:00
Issue 24374: Plug refleak in set_coroutine_wrapper
This commit is contained in:
parent
53f95024d7
commit
94c2263005
2 changed files with 21 additions and 33 deletions
|
@ -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:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue