1. Armin Rigo
  2. cpython-withatomic

Commits

Christian Heimes  committed 710d525

Windows fix for signal test - skip it earlier

  • Participants
  • Parent commits bf3fa37
  • Branches legacy-trunk

Comments (0)

Files changed (1)

File Lib/test/test_signal.py

View file
  • Ignore whitespace
 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
         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)