summaryrefslogtreecommitdiff
path: root/Lib/test/test_eintr.py
diff options
context:
space:
mode:
authorVictor Stinner <victor.stinner@gmail.com>2015-09-18 11:23:42 +0200
committerVictor Stinner <victor.stinner@gmail.com>2015-09-18 11:23:42 +0200
commitbaab5f73417dabd5e5dc6fe9e0dc3b917f812fb2 (patch)
treee668724f6b8f95dccca53535c175aff3a56d8941 /Lib/test/test_eintr.py
parent3e30fd7c5978c642b5a8dc9430a41b321cfd6c20 (diff)
downloadcpython-git-baab5f73417dabd5e5dc6fe9e0dc3b917f812fb2.tar.gz
Issue #25122: Fix test_eintr.test_open() on FreeBSD
Skip test_open() and test_os_open(): both tests uses a FIFO and signals, but there is a bug in the FreeBSD kernel which blocks the test. Skip the tests until the bug is fixed in FreeBSD kernel. Remove also debug traces from test_eintr: * stop using faulthandler to have a timeout * remove print() Write also open and close on two lines in test_open() and test_os_open() tests. If these tests block again, we can know if the test is stuck at open or close. test_eintr: don't always run the test in debug mode.
Diffstat (limited to 'Lib/test/test_eintr.py')
-rw-r--r--Lib/test/test_eintr.py3
1 files changed, 1 insertions, 2 deletions
diff --git a/Lib/test/test_eintr.py b/Lib/test/test_eintr.py
index a1907e8d98..aabad835a0 100644
--- a/Lib/test/test_eintr.py
+++ b/Lib/test/test_eintr.py
@@ -17,8 +17,7 @@ class EINTRTests(unittest.TestCase):
# thread (for reliable signal delivery).
tester = support.findfile("eintr_tester.py", subdir="eintrdata")
- # FIXME: Issue #25122, always run in verbose mode to debug hang on FreeBSD
- if True: #support.verbose:
+ if support.verbose:
args = [sys.executable, tester]
with subprocess.Popen(args) as proc:
exitcode = proc.wait()