diff options
author | Serhiy Storchaka <storchaka@gmail.com> | 2018-05-08 04:48:50 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-05-08 04:48:50 (GMT) |
commit | d54cfb160c626626394e2f171d3ccfe03309f34e (patch) | |
tree | 7cadfc0541bd650485f4e8e1e9ee45252492f06e /Lib/test/test_signal.py | |
parent | a3f19c3f52ddff85dd52eaa01b77b2d50cc9af3f (diff) | |
download | cpython-d54cfb160c626626394e2f171d3ccfe03309f34e.zip cpython-d54cfb160c626626394e2f171d3ccfe03309f34e.tar.gz cpython-d54cfb160c626626394e2f171d3ccfe03309f34e.tar.bz2 |
bpo-33441: Make the sigset_t converter available in other modules. (GH-6720)
* Expose the sigset_t converter via private API _Py_Sigset_Converter().
* Use Argument Clinic for parsing sigset_t in signalmodule.c.
* Raise ValueError instead OverflowError for integers out of
the C long range.
Based on patch by Pablo Galindo Salgado.
Diffstat (limited to 'Lib/test/test_signal.py')
-rw-r--r-- | Lib/test/test_signal.py | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/Lib/test/test_signal.py b/Lib/test/test_signal.py index 7ce89f6..354c3fd 100644 --- a/Lib/test/test_signal.py +++ b/Lib/test/test_signal.py @@ -943,6 +943,10 @@ class PendingSignalsTests(unittest.TestCase): self.assertRaises(OSError, signal.pthread_sigmask, 1700, []) with self.assertRaises(ValueError): signal.pthread_sigmask(signal.SIG_BLOCK, [signal.NSIG]) + with self.assertRaises(ValueError): + signal.pthread_sigmask(signal.SIG_BLOCK, [0]) + with self.assertRaises(ValueError): + signal.pthread_sigmask(signal.SIG_BLOCK, [1<<1000]) @unittest.skipUnless(hasattr(signal, 'pthread_sigmask'), 'need signal.pthread_sigmask()') |