diff options
| author | Brian Curtin <brian.curtin@gmail.com> | 2010-09-06 16:04:10 +0000 |
|---|---|---|
| committer | Brian Curtin <brian.curtin@gmail.com> | 2010-09-06 16:04:10 +0000 |
| commit | c734b312cb8316af0c036323b16caf23545cd21f (patch) | |
| tree | e8b23e51e9b39c86e7101af251dc4b57fabb5cc7 /Lib/test/test_signal.py | |
| parent | 92f87f7c49179e271e893898ec898f9908508313 (diff) | |
| download | cpython-git-c734b312cb8316af0c036323b16caf23545cd21f.tar.gz | |
Clean up the fix to #9324 with some of the suggestions raised on python-dev
in response to the original checkin.
Move the validation from the original loop into a switch statement,
and adjust a platform check in the tests.
Diffstat (limited to 'Lib/test/test_signal.py')
| -rw-r--r-- | Lib/test/test_signal.py | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/Lib/test/test_signal.py b/Lib/test/test_signal.py index a00e2d8621..7aa03ef892 100644 --- a/Lib/test/test_signal.py +++ b/Lib/test/test_signal.py @@ -9,9 +9,8 @@ import subprocess import traceback import sys, os, time, errno -if sys.platform == 'os2' or sys.platform == 'riscos': - raise unittest.SkipTest("Can't test signal on %s" % \ - sys.platform) +if sys.platform in ('os2', 'riscos'): + raise unittest.SkipTest("Can't test signal on %s" % sys.platform) class HandlerBCalled(Exception): |
