diff options
author | Brian Curtin <brian.curtin@gmail.com> | 2010-09-06 16:04:10 (GMT) |
---|---|---|
committer | Brian Curtin <brian.curtin@gmail.com> | 2010-09-06 16:04:10 (GMT) |
commit | c734b312cb8316af0c036323b16caf23545cd21f (patch) | |
tree | e8b23e51e9b39c86e7101af251dc4b57fabb5cc7 /Lib/test | |
parent | 92f87f7c49179e271e893898ec898f9908508313 (diff) | |
download | cpython-c734b312cb8316af0c036323b16caf23545cd21f.zip cpython-c734b312cb8316af0c036323b16caf23545cd21f.tar.gz cpython-c734b312cb8316af0c036323b16caf23545cd21f.tar.bz2 |
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')
-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 a00e2d8..7aa03ef 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): |