STINNER Victor <> added the comment:

To debug remaining "Exception ignored in:" issues, I'm using the following 

diff --git a/Lib/unittest/ b/Lib/unittest/
index 972a4658b1..be38af3daa 100644
--- a/Lib/unittest/
+++ b/Lib/unittest/
@@ -710,6 +710,7 @@ class TestCase(object):
             # clear the outcome, no more needed
             self._outcome = None
+            import gc; gc.collect()
     def doCleanups(self):
         """Execute all cleanup functions. Normally called for you after

And I run:

./python -X dev -u -m test test_io -v 2>&1|tee log


Python tracker <>
Python-bugs-list mailing list

Reply via email to