diff options
author | Fred Drake <fdrake@acm.org> | 2000-08-18 14:50:20 (GMT) |
---|---|---|
committer | Fred Drake <fdrake@acm.org> | 2000-08-18 14:50:20 (GMT) |
commit | b65b0065954ce1a410d8309529a5239b7da2bcfd (patch) | |
tree | 352e9cfb81a15301780fbe9a775007a3d3c26f06 /Lib/test/test_unpack.py | |
parent | f28b898f13cd07809667c389a36c9507b18da9ed (diff) | |
download | cpython-b65b0065954ce1a410d8309529a5239b7da2bcfd.zip cpython-b65b0065954ce1a410d8309529a5239b7da2bcfd.tar.gz cpython-b65b0065954ce1a410d8309529a5239b7da2bcfd.tar.bz2 |
Convert some old-style string exceptions to class exceptions.
Diffstat (limited to 'Lib/test/test_unpack.py')
-rw-r--r-- | Lib/test/test_unpack.py | 3 |
1 files changed, 2 insertions, 1 deletions
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): |