diff options
author | Antoine Pitrou <pitrou@free.fr> | 2018-05-04 11:00:50 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-05-04 11:00:50 (GMT) |
commit | 9d3627e311211a1b4abcda29c36fe4afe2c46532 (patch) | |
tree | 26f76c94bb55ee8b242f044efa26cfd8b08e9d26 /Lib/test/support | |
parent | 491bbedc209fea314a04cb3015da68fb0aa63238 (diff) | |
download | cpython-9d3627e311211a1b4abcda29c36fe4afe2c46532.zip cpython-9d3627e311211a1b4abcda29c36fe4afe2c46532.tar.gz cpython-9d3627e311211a1b4abcda29c36fe4afe2c46532.tar.bz2 |
bpo-33332: Add signal.valid_signals() (GH-6581)
Diffstat (limited to 'Lib/test/support')
-rw-r--r-- | Lib/test/support/__init__.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/test/support/__init__.py b/Lib/test/support/__init__.py index a5f86d4..f1c4c95 100644 --- a/Lib/test/support/__init__.py +++ b/Lib/test/support/__init__.py @@ -2810,7 +2810,7 @@ class SaveSignals: def __init__(self): import signal self.signal = signal - self.signals = list(range(1, signal.NSIG)) + self.signals = signal.valid_signals() # SIGKILL and SIGSTOP signals cannot be ignored nor caught for signame in ('SIGKILL', 'SIGSTOP'): try: |