summaryrefslogtreecommitdiffstats
path: root/Lib/test/test_unpack.py
diff options
context:
space:
mode:
authorSerhiy Storchaka <storchaka@gmail.com>2017-12-26 10:30:41 (GMT)
committerGitHub <noreply@github.com>2017-12-26 10:30:41 (GMT)
commit13a6c098c215921e35004f9d3a9b70f601e56500 (patch)
treecda014f1d730c1b10abc45484b9e2cf7ea04aa33 /Lib/test/test_unpack.py
parenta8f4e15f3d33084862ddd3a7d58cd00034e94f16 (diff)
downloadcpython-13a6c098c215921e35004f9d3a9b70f601e56500.zip
cpython-13a6c098c215921e35004f9d3a9b70f601e56500.tar.gz
cpython-13a6c098c215921e35004f9d3a9b70f601e56500.tar.bz2
bpo-32259: Make a TypeError message when unpack non-iterable more specific. (#4903)
Diffstat (limited to 'Lib/test/test_unpack.py')
-rw-r--r--Lib/test/test_unpack.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/Lib/test/test_unpack.py b/Lib/test/test_unpack.py
index 3fcb18f..1c0c523 100644
--- a/Lib/test/test_unpack.py
+++ b/Lib/test/test_unpack.py
@@ -55,7 +55,7 @@ Unpacking non-sequence
>>> a, b, c = 7
Traceback (most recent call last):
...
- TypeError: 'int' object is not iterable
+ TypeError: cannot unpack non-iterable int object
Unpacking tuple of wrong size
@@ -129,7 +129,7 @@ Unpacking non-iterables should raise TypeError
>>> () = 42
Traceback (most recent call last):
...
- TypeError: 'int' object is not iterable
+ TypeError: cannot unpack non-iterable int object
Unpacking to an empty iterable should raise ValueError