diff options
author | Andrew Svetlov <andrew.svetlov@gmail.com> | 2012-12-18 19:27:16 (GMT) |
---|---|---|
committer | Andrew Svetlov <andrew.svetlov@gmail.com> | 2012-12-18 19:27:16 (GMT) |
commit | a19195984922ce89e7695c93b3bb45c3e0e6d732 (patch) | |
tree | 2cbafae7aa7aa368583be6216a0c23bce0774a0f /Lib/test/test_signal.py | |
parent | f61dc4cea24c2e994dc11947a6d67708af87ce50 (diff) | |
parent | 5b89840d9cf11014a4b865d79497649f74bf2866 (diff) | |
download | cpython-a19195984922ce89e7695c93b3bb45c3e0e6d732.zip cpython-a19195984922ce89e7695c93b3bb45c3e0e6d732.tar.gz cpython-a19195984922ce89e7695c93b3bb45c3e0e6d732.tar.bz2 |
Issue #16714: use 'raise' exceptions, don't 'throw'.
Patch by Serhiy Storchaka.
Diffstat (limited to 'Lib/test/test_signal.py')
-rw-r--r-- | Lib/test/test_signal.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Lib/test/test_signal.py b/Lib/test/test_signal.py index c04e52b..d2fd84b 100644 --- a/Lib/test/test_signal.py +++ b/Lib/test/test_signal.py @@ -104,7 +104,7 @@ class InterProcessSignalTests(unittest.TestCase): # This wait should be interrupted by the signal's exception. self.wait(child) time.sleep(1) # Give the signal time to be delivered. - self.fail('HandlerBCalled exception not thrown') + self.fail('HandlerBCalled exception not raised') except HandlerBCalled: self.assertTrue(self.b_called) self.assertFalse(self.a_called) @@ -140,7 +140,7 @@ class InterProcessSignalTests(unittest.TestCase): # test-running process from all the signals. It then # communicates with that child process over a pipe and # re-raises information about any exceptions the child - # throws. The real work happens in self.run_test(). + # raises. The real work happens in self.run_test(). os_done_r, os_done_w = os.pipe() with closing(os.fdopen(os_done_r, 'rb')) as done_r, \ closing(os.fdopen(os_done_w, 'wb')) as done_w: |