Michael Foord  committed 917bc6b

Skip signal tests on windows.

  • Participants
  • Parent commits 91012ff

Comments (0)

Files changed (1)

File unittest2/test/

 import gc
 import os
+import sys
 import weakref
 from cStringIO import StringIO
 # Should also skip some tests on Jython
 skipper = unittest2.skipUnless(hasattr(os, 'kill') and signal is not None, 
                                "test uses os.kill(...) and the signal module")
-TestBreak = skipper(TestBreak)
+skipper2 = unittest2.skipIf(sys.platform == 'win32', "can't run on windows")
+TestBreak = skipper(skipper2(TestBreak))
 if __name__ == '__main__':