New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
test_signal failure #57293
Comments
Got this failure on Debian lenny amd64: [1/1] test_signal
test test_signal failed -- Traceback (most recent call last):
File "/home/stefan/cpython/Lib/test/test_signal.py", line 339, in test_pending
""", *signals)
File "/home/stefan/cpython/Lib/test/test_signal.py", line 263, in check_wakeup
assert_python_ok('-c', code)
File "/home/stefan/cpython/Lib/test/script_helper.py", line 50, in assert_python_ok
return _assert_python(True, *args, **env_vars)
File "/home/stefan/cpython/Lib/test/script_helper.py", line 42, in _assert_python
"stderr follows:\n%s" % (rc, err.decode('ascii', 'ignore')))
AssertionError: Process return code is 1, stderr follows:
Traceback (most recent call last):
File "<string>", line 41, in <module>
File "<string>", line 16, in check_signum
Exception: (10, 12) != (12, 10) 1 test failed: |
See http://bugs.python.org/issue12469, specifically http://bugs.python.org/issue12469#msg139831 """
It looks like it works like this on most OSes (Linux, Mac OS X, Solaris, Looks like we now have a failure :-) |
WakeupSignalTests.test_pending() doesn't really check our signal handler but more the operating system, especially pthread_sigmask(SIG_UNBLOCK). I don't think that Python should test the signal order delivered by the operating systems when SIG_UNBLOCK. Anyone motivated to write a patch to use again a set()? |
Patch looks good to me (and it fixes the problem). |
New changeset e4f4272479d0 by Charles-François Natali in branch 'default': |
Note: these values reflect the state of the issue at the time it was migrated and might not reflect the current state.
Show more details
GitHub fields:
bugs.python.org fields:
The text was updated successfully, but these errors were encountered: