summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorArmin Rigo <arigo@tunes.org>2004-08-07 21:27:43 +0000
committerArmin Rigo <arigo@tunes.org>2004-08-07 21:27:43 +0000
commit8b2cbfd180a6bb03e807565a3dcc8a03302c2fc4 (patch)
treef3126e143e49c8d752e9d0dc87dde066dea37726
parente6e77e5fe74289af8afe653ea426bcf966afff89 (diff)
downloadcpython-git-8b2cbfd180a6bb03e807565a3dcc8a03302c2fc4.tar.gz
Let's not use string exceptions any more.
-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 5c1132254e..042cfa93e8 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: