diff options
author | Georg Brandl <georg@python.org> | 2010-07-10 10:32:36 (GMT) |
---|---|---|
committer | Georg Brandl <georg@python.org> | 2010-07-10 10:32:36 (GMT) |
commit | 0310a83e7f2cb7cdb94d5a1a737681119783c834 (patch) | |
tree | e917b6589145aaa0372002c52a6b23a3bf60be87 /Lib/test/test_unpack.py | |
parent | 93eb42e805524cd1375deab520d6f4828e0a4f53 (diff) | |
download | cpython-0310a83e7f2cb7cdb94d5a1a737681119783c834.zip cpython-0310a83e7f2cb7cdb94d5a1a737681119783c834.tar.gz cpython-0310a83e7f2cb7cdb94d5a1a737681119783c834.tar.bz2 |
#3071: tell how many values were expected when unpacking too many.
Diffstat (limited to 'Lib/test/test_unpack.py')
-rw-r--r-- | Lib/test/test_unpack.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/Lib/test/test_unpack.py b/Lib/test/test_unpack.py index b1531f3..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 |