This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author vstinner
Recipients asvetlov, vstinner, yselivanov
Date 2022-01-21.15:21:28
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1642778488.24.0.387685452896.issue46457@roundup.psfhosted.org>
In-reply-to
Content
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
History
Date User Action Args
2022-01-21 15:21:28vstinnersetrecipients: + vstinner, asvetlov, yselivanov
2022-01-21 15:21:28vstinnersetmessageid: <1642778488.24.0.387685452896.issue46457@roundup.psfhosted.org>
2022-01-21 15:21:28vstinnerlinkissue46457 messages
2022-01-21 15:21:28vstinnercreate