[issue46457] test_unittest: TestAsyncCase.test_debug_cleanup_same_loop() hangs with gc.set_threshold(500)
STINNER Victor
report at bugs.python.org
Fri Jan 21 10:21:28 EST 2022
New submission from STINNER Victor <vstinner at python.org>:
The following command hangs:
./python -u -m test -v test_unittest -m test_debug_cleanup_same_loop -v 2>/dev/null
if the following patch is applied on Python:
diff --git a/Lib/unittest/test/test_async_case.py b/Lib/unittest/test/test_async_case.py
index 3717486b265..c6759a13494 100644
--- a/Lib/unittest/test/test_async_case.py
+++ b/Lib/unittest/test/test_async_case.py
@@ -2,6 +2,7 @@
import unittest
from test import support
+import gc; gc.set_threshold(500)
class MyException(Exception):
pass
----------
components: Tests, asyncio
messages: 411136
nosy: asvetlov, vstinner, yselivanov
priority: normal
severity: normal
status: open
title: test_unittest: TestAsyncCase.test_debug_cleanup_same_loop() hangs with gc.set_threshold(500)
versions: Python 3.11
_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue46457>
_______________________________________
More information about the Python-bugs-list
mailing list