From: Fred Drake Date: Fri, 18 Aug 2000 14:50:20 +0000 (+0000) Subject: Convert some old-style string exceptions to class exceptions. X-Git-Tag: v2.0b1~370 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=b65b0065954ce1a410d8309529a5239b7da2bcfd;p=thirdparty%2FPython%2Fcpython.git Convert some old-style string exceptions to class exceptions. --- diff --git a/Lib/test/test_rgbimg.py b/Lib/test/test_rgbimg.py index 38bcdf565230..1fa201d4670b 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 1bfd47840b91..25324c053a3f 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):