[issue35363] test_eintr: test_open() hangs randomly on x86-64 El Capitan 3.x buildbot

STINNER Victor report at bugs.python.org
Fri Nov 30 10:59:32 EST 2018


STINNER Victor <vstinner at redhat.com> added the comment:

I'm unable to reproduce the bug on macOS 10.13.6 using:

   ./python.exe -m test -F test_eintr --timeout=60


I modified the test to display immediately result into stdout:

diff --git a/Lib/test/test_eintr.py b/Lib/test/test_eintr.py
index 25f86d3..47b89d3 100644
--- a/Lib/test/test_eintr.py
+++ b/Lib/test/test_eintr.py
@@ -1,6 +1,8 @@
 import os
+import sys
 import signal
 import unittest
+import subprocess
 
 from test import support
 from test.support import script_helper
@@ -15,7 +17,9 @@ class EINTRTests(unittest.TestCase):
         # thread (for reliable signal delivery).
         tester = support.findfile("eintr_tester.py", subdir="eintrdata")
         # use -u to try to get the full output if the test hangs or crash
-        script_helper.assert_python_ok("-u", tester)
+        proc = subprocess.run([sys.executable, "-u", tester, "-v"])
+        if proc.returncode:
+            self.fail("fail")
 
 
 if __name__ == "__main__":

----------

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


More information about the Python-bugs-list mailing list