mirror of
https://github.com/python/cpython.git
synced 2025-08-03 00:23:06 +00:00
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.
This commit is contained in:
parent
86f9613957
commit
42143562c2
1 changed files with 6 additions and 6 deletions
|
@ -223,7 +223,9 @@ class WindowsSignalTests(unittest.TestCase):
|
||||||
|
|
||||||
with self.assertRaises(ValueError):
|
with self.assertRaises(ValueError):
|
||||||
signal.signal(-1, handler)
|
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")
|
@unittest.skipIf(sys.platform == "win32", "Not valid on Windows")
|
||||||
|
@ -483,11 +485,9 @@ class ItimerTest(unittest.TestCase):
|
||||||
self.assertEqual(self.hndl_called, True)
|
self.assertEqual(self.hndl_called, True)
|
||||||
|
|
||||||
def test_main():
|
def test_main():
|
||||||
if sys.platform == "win32":
|
support.run_unittest(BasicSignalTests, InterProcessSignalTests,
|
||||||
support.run_unittest(WindowsSignalTests)
|
WakeupSignalTests, SiginterruptTest,
|
||||||
else:
|
ItimerTest, WindowsSignalTests)
|
||||||
support.run_unittest(BasicSignalTests, InterProcessSignalTests,
|
|
||||||
WakeupSignalTests, SiginterruptTest, ItimerTest)
|
|
||||||
|
|
||||||
|
|
||||||
if __name__ == "__main__":
|
if __name__ == "__main__":
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue