summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFred Drake <fdrake@acm.org>2000-08-18 14:50:20 (GMT)
committerFred Drake <fdrake@acm.org>2000-08-18 14:50:20 (GMT)
commitb65b0065954ce1a410d8309529a5239b7da2bcfd (patch)
tree352e9cfb81a15301780fbe9a775007a3d3c26f06
parentf28b898f13cd07809667c389a36c9507b18da9ed (diff)
downloadcpython-b65b0065954ce1a410d8309529a5239b7da2bcfd.zip
cpython-b65b0065954ce1a410d8309529a5239b7da2bcfd.tar.gz
cpython-b65b0065954ce1a410d8309529a5239b7da2bcfd.tar.bz2
Convert some old-style string exceptions to class exceptions.
-rw-r--r--Lib/test/test_rgbimg.py3
-rw-r--r--Lib/test/test_unpack.py3
2 files changed, 4 insertions, 2 deletions
diff --git a/Lib/test/test_rgbimg.py b/Lib/test/test_rgbimg.py
index 38bcdf5..1fa201d 100644
--- a/Lib/test/test_rgbimg.py
+++ b/Lib/test/test_rgbimg.py
@@ -4,7 +4,8 @@ import rgbimg, os, uu
from test_support import verbose, unlink, findfile
-error = 'test_rgbimg.error'
+class error(Exception):
+ pass
print 'RGBimg test suite:'
diff --git a/Lib/test/test_unpack.py b/Lib/test/test_unpack.py
index 1bfd478..25324c0 100644
--- a/Lib/test/test_unpack.py
+++ b/Lib/test/test_unpack.py
@@ -100,7 +100,8 @@ except ValueError:
# unpacking a sequence where the test for too long raises a different
# kind of error
-BozoError = 'BozoError'
+class BozoError(Exception):
+ pass
class BadSeq:
def __getitem__(self, i):