diff options
author | Christian Heimes <christian@cheimes.de> | 2008-02-28 21:00:45 (GMT) |
---|---|---|
committer | Christian Heimes <christian@cheimes.de> | 2008-02-28 21:00:45 (GMT) |
commit | acfd8ed0cd6c88375f1b27ba8ffd072e7a588473 (patch) | |
tree | ce473323a5aab3fbcd4cafc449082b0f6004ed04 /Lib | |
parent | d9759c4880412d9ad55febc63732e29db0718117 (diff) | |
download | cpython-acfd8ed0cd6c88375f1b27ba8ffd072e7a588473.zip cpython-acfd8ed0cd6c88375f1b27ba8ffd072e7a588473.tar.gz cpython-acfd8ed0cd6c88375f1b27ba8ffd072e7a588473.tar.bz2 |
Windows fix for signal test - skip it earlier
Diffstat (limited to 'Lib')
-rw-r--r-- | Lib/test/test_signal.py | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/Lib/test/test_signal.py b/Lib/test/test_signal.py index 332001f..b88565c 100644 --- a/Lib/test/test_signal.py +++ b/Lib/test/test_signal.py @@ -1,7 +1,12 @@ import unittest from test import test_support import signal -import os, sys, time, errno +import sys, os, time, errno + +if sys.platform[:3] in ('win', 'os2') or sys.platform == 'riscos': + raise test_support.TestSkipped("Can't test signal on %s" % \ + sys.platform) + class HandlerBCalled(Exception): pass @@ -256,10 +261,6 @@ class SiginterruptTest(unittest.TestCase): self.assertEquals(i, False) def test_main(): - if sys.platform[:3] in ('win', 'os2') or sys.platform == 'riscos': - raise test_support.TestSkipped("Can't test signal on %s" % \ - sys.platform) - test_support.run_unittest(BasicSignalTests, InterProcessSignalTests, WakeupSignalTests, SiginterruptTest) |