diff options
-rw-r--r-- | Lib/test/test_rgbimg.py | 3 | ||||
-rw-r--r-- | Lib/test/test_unpack.py | 3 |
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): |