Windows fix for signal test - skip it earlier

This commit is contained in:
Christian Heimes 2008-02-28 21:00:45 +00:00
parent d9759c4880
commit acfd8ed0cd
1 changed files with 6 additions and 5 deletions

View File

@ -1,7 +1,12 @@
import unittest import unittest
from test import test_support from test import test_support
import signal 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): class HandlerBCalled(Exception):
pass pass
@ -256,10 +261,6 @@ class SiginterruptTest(unittest.TestCase):
self.assertEquals(i, False) self.assertEquals(i, False)
def test_main(): 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, test_support.run_unittest(BasicSignalTests, InterProcessSignalTests,
WakeupSignalTests, SiginterruptTest) WakeupSignalTests, SiginterruptTest)