diff options
Diffstat (limited to 'Lib/test/test_unpack.py')
| -rw-r--r-- | Lib/test/test_unpack.py | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/Lib/test/test_unpack.py b/Lib/test/test_unpack.py index 7ddbc62..b1c483d 100644 --- a/Lib/test/test_unpack.py +++ b/Lib/test/test_unpack.py @@ -62,14 +62,14 @@ Unpacking tuple of wrong size >>> a, b = t Traceback (most recent call last): ... - ValueError: too many values to unpack + ValueError: too many values to unpack (expected 2) Unpacking tuple of wrong size >>> a, b = l Traceback (most recent call last): ... - ValueError: too many values to unpack + ValueError: too many values to unpack (expected 2) Unpacking sequence too short @@ -83,7 +83,7 @@ Unpacking sequence too long >>> a, b = Seq() Traceback (most recent call last): ... - ValueError: too many values to unpack + ValueError: too many values to unpack (expected 2) Unpacking a sequence where the test for too long raises a different kind of error @@ -107,7 +107,7 @@ error) >>> a, b, c, d, e = BadSeq() Traceback (most recent call last): ... - BozoError + test.test_unpack.BozoError Trigger code while expecting an IndexError (unpack sequence too short, wrong error) @@ -115,16 +115,16 @@ error) >>> a, b, c = BadSeq() Traceback (most recent call last): ... - BozoError + test.test_unpack.BozoError """ __test__ = {'doctests' : doctests} def test_main(verbose=False): - from test import test_support + from test import support from test import test_unpack - test_support.run_doctest(test_unpack, verbose) + support.run_doctest(test_unpack, verbose) if __name__ == "__main__": test_main(verbose=True) |
