diff options
author | Victor Stinner <victor.stinner@haypocalc.com> | 2011-06-10 12:02:10 (GMT) |
---|---|---|
committer | Victor Stinner <victor.stinner@haypocalc.com> | 2011-06-10 12:02:10 (GMT) |
commit | 7f294d1e19a4f20f03e972d47c54cd6d19c42983 (patch) | |
tree | 9082c28a0efd7572fdbddaaf66b06044551b8d34 | |
parent | 3a38a6db432e518f384d546646c678425a80f001 (diff) | |
download | cpython-7f294d1e19a4f20f03e972d47c54cd6d19c42983.zip cpython-7f294d1e19a4f20f03e972d47c54cd6d19c42983.tar.gz cpython-7f294d1e19a4f20f03e972d47c54cd6d19c42983.tar.bz2 |
Issue #8407: skip sigwait() tests if pthread_sigmask() is missing
The new tests now requires pthread_sigmask(). Skip the test if the function is
missing, e.g. if Python is compiled without threads.
-rw-r--r-- | Lib/test/test_signal.py | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/Lib/test/test_signal.py b/Lib/test/test_signal.py index 7a17043..35887ef 100644 --- a/Lib/test/test_signal.py +++ b/Lib/test/test_signal.py @@ -598,6 +598,8 @@ class PendingSignalsTests(unittest.TestCase): with self.assertRaises(ZeroDivisionError): signal.pthread_kill(current, signum) + @unittest.skipUnless(hasattr(signal, 'pthread_sigmask'), + 'need signal.pthread_sigmask()') def check_sigwait(self, test, signum): # sigwait must be called with the signal blocked: since the current # process might have several threads running, we fork() a child process |