summaryrefslogtreecommitdiffstats
path: root/Lib/test/test_signal.py
diff options
context:
space:
mode:
authorAndrew Svetlov <andrew.svetlov@gmail.com>2012-12-18 19:27:16 (GMT)
committerAndrew Svetlov <andrew.svetlov@gmail.com>2012-12-18 19:27:16 (GMT)
commita19195984922ce89e7695c93b3bb45c3e0e6d732 (patch)
tree2cbafae7aa7aa368583be6216a0c23bce0774a0f /Lib/test/test_signal.py
parentf61dc4cea24c2e994dc11947a6d67708af87ce50 (diff)
parent5b89840d9cf11014a4b865d79497649f74bf2866 (diff)
downloadcpython-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.py4
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: