Fix an assertRaises situation and typo. Also pass all tests to run_unittest
rather than do it by platform -- the proper skips are in place already.
diff --git a/Lib/test/test_signal.py b/Lib/test/test_signal.py
index a7ce52b2..a00e2d8 100644
--- a/Lib/test/test_signal.py
+++ b/Lib/test/test_signal.py
@@ -223,7 +223,9 @@
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 @@
self.assertEqual(self.hndl_called, True)
def test_main():
- if sys.platform == "win32":
- support.run_unittest(WindowsSignalTests)
- else:
- support.run_unittest(BasicSignalTests, InterProcessSignalTests,
- WakeupSignalTests, SiginterruptTest, ItimerTest)
+ support.run_unittest(BasicSignalTests, InterProcessSignalTests,
+ WakeupSignalTests, SiginterruptTest,
+ ItimerTest, WindowsSignalTests)
if __name__ == "__main__":