diff options
author | Brian Curtin <brian.curtin@gmail.com> | 2010-08-07 03:52:38 (GMT) |
---|---|---|
committer | Brian Curtin <brian.curtin@gmail.com> | 2010-08-07 03:52:38 (GMT) |
commit | 80cd4bff53fab28a15fef40e2479a455aa5b400e (patch) | |
tree | 26aacb28b2a9809956c365fd153a9b3372f0770d /Lib/test/test_signal.py | |
parent | b42a21df1102a4ca833cf50d7caeda9391a8a54a (diff) | |
download | cpython-80cd4bff53fab28a15fef40e2479a455aa5b400e.zip cpython-80cd4bff53fab28a15fef40e2479a455aa5b400e.tar.gz cpython-80cd4bff53fab28a15fef40e2479a455aa5b400e.tar.bz2 |
Merged revisions 83771 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/branches/py3k
........
r83771 | brian.curtin | 2010-08-06 22:47:21 -0500 (Fri, 06 Aug 2010) | 3 lines
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.
........
Diffstat (limited to 'Lib/test/test_signal.py')
-rw-r--r-- | Lib/test/test_signal.py | 12 |
1 files changed, 6 insertions, 6 deletions
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 @@ 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": - 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__": |