Kaydet (Commit) b65b0065 authored tarafından Fred Drake's avatar Fred Drake

Convert some old-style string exceptions to class exceptions.

üst f28b898f
......@@ -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:'
......
......@@ -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):
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment