summaryrefslogtreecommitdiffstats
path: root/Lib
diff options
context:
space:
mode:
authorChristian Heimes <christian@cheimes.de>2008-02-28 21:00:45 (GMT)
committerChristian Heimes <christian@cheimes.de>2008-02-28 21:00:45 (GMT)
commitacfd8ed0cd6c88375f1b27ba8ffd072e7a588473 (patch)
treece473323a5aab3fbcd4cafc449082b0f6004ed04 /Lib
parentd9759c4880412d9ad55febc63732e29db0718117 (diff)
downloadcpython-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.py11
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)