From acfd8ed0cd6c88375f1b27ba8ffd072e7a588473 Mon Sep 17 00:00:00 2001 From: Christian Heimes Date: Thu, 28 Feb 2008 21:00:45 +0000 Subject: [PATCH] Windows fix for signal test - skip it earlier --- Lib/test/test_signal.py | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/Lib/test/test_signal.py b/Lib/test/test_signal.py index 332001f6a20..b88565cf631 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)