New submission from STINNER Victor <vstin...@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 <rep...@bugs.python.org>
<https://bugs.python.org/issue46457>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to