summaryrefslogtreecommitdiffstats
path: root/Lib/test
diff options
context:
space:
mode:
authorArmin Rigo <arigo@tunes.org>2004-08-07 21:27:43 (GMT)
committerArmin Rigo <arigo@tunes.org>2004-08-07 21:27:43 (GMT)
commit8b2cbfd180a6bb03e807565a3dcc8a03302c2fc4 (patch)
treef3126e143e49c8d752e9d0dc87dde066dea37726 /Lib/test
parente6e77e5fe74289af8afe653ea426bcf966afff89 (diff)
downloadcpython-8b2cbfd180a6bb03e807565a3dcc8a03302c2fc4.zip
cpython-8b2cbfd180a6bb03e807565a3dcc8a03302c2fc4.tar.gz
cpython-8b2cbfd180a6bb03e807565a3dcc8a03302c2fc4.tar.bz2
Let's not use string exceptions any more.
Diffstat (limited to 'Lib/test')
-rw-r--r--Lib/test/test_signal.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/Lib/test/test_signal.py b/Lib/test/test_signal.py
index 5c11322..042cfa9 100644
--- a/Lib/test/test_signal.py
+++ b/Lib/test/test_signal.py
@@ -29,7 +29,8 @@ def handlerA(*args):
if verbose:
print "handlerA", args
-HandlerBCalled = "HandlerBCalled" # Exception
+class HandlerBCalled(Exception):
+ pass
def handlerB(*args):
if verbose: