[issue46709] test_urllib: testInterruptCaught() has a race condition and fails randomly

Nikita Sobolev report at bugs.python.org
Fri Feb 11 02:52:35 EST 2022


Nikita Sobolev <mail at sobolevn.me> added the comment:

Other tests are also affected:
- `./python.exe -m test -m unittest.test.test_break.TestBreakDefaultIntHandler.testSecondInterrupt test_unittest -F`
- `./python.exe -m test -m unittest.test.test_break.TestBreakDefaultIntHandler.testTwoResults test_unittest -F`
- `./python.exe -m test -m unittest.test.test_break.TestBreakDefaultIntHandler.testHandlerReplacedButCalled test_unittest -F`
- etc

I think that we need a universal solution, I am going to write a helper method and add it to all tests there.

----------

_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue46709>
_______________________________________


More information about the Python-bugs-list mailing list