summaryrefslogtreecommitdiffstats
path: root/Lib
diff options
context:
space:
mode:
authorBrian Curtin <brian.curtin@gmail.com>2010-08-07 03:56:16 (GMT)
committerBrian Curtin <brian.curtin@gmail.com>2010-08-07 03:56:16 (GMT)
commit9d310d3581a226b36b217423c37cc735226bdc64 (patch)
tree5cfe7683f05b2b36af3c749976f233273e6a6f4c /Lib
parent27e19a21b14a5a9dfbe1b9567c6ec3a936b1551b (diff)
downloadcpython-9d310d3581a226b36b217423c37cc735226bdc64.zip
cpython-9d310d3581a226b36b217423c37cc735226bdc64.tar.gz
cpython-9d310d3581a226b36b217423c37cc735226bdc64.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')
-rw-r--r--Lib/test/test_signal.py12
1 files changed, 6 insertions, 6 deletions
diff --git a/Lib/test/test_signal.py b/Lib/test/test_signal.py
index 6c23fb5..2238842 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__":