diff --git a/Lib/test/test_signal.py b/Lib/test/test_signal.py index 6c23fb5d43b..2238842b607 100644 --- a/Lib/test/test_signal.py +++ b/Lib/test/test_signal.py @@ -223,7 +223,9 @@ class WindowsSignalTests(unittest.TestCase): with self.assertRaises(ValueError): signal.signal(-1, handler) - sinal.signal(7, handler) + + with self.assertRaises(ValueError): + signal.signal(7, handler) @unittest.skipIf(sys.platform == "win32", "Not valid on Windows") @@ -483,11 +485,9 @@ class ItimerTest(unittest.TestCase): self.assertEqual(self.hndl_called, True) def test_main(): - if sys.platform == "win32": - test_support.run_unittest(WindowsSignalTests) - else: - test_support.run_unittest(BasicSignalTests, InterProcessSignalTests, - WakeupSignalTests, SiginterruptTest, ItimerTest) + test_support.run_unittest(BasicSignalTests, InterProcessSignalTests, + WakeupSignalTests, SiginterruptTest, + ItimerTest, WindowsSignalTests) if __name__ == "__main__":