diff options
author | Serhiy Storchaka <storchaka@gmail.com> | 2017-12-26 12:30:41 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-12-26 12:30:41 +0200 |
commit | 13a6c098c215921e35004f9d3a9b70f601e56500 (patch) | |
tree | cda014f1d730c1b10abc45484b9e2cf7ea04aa33 /Lib/test/test_dataclasses.py | |
parent | a8f4e15f3d33084862ddd3a7d58cd00034e94f16 (diff) | |
download | cpython-13a6c098c215921e35004f9d3a9b70f601e56500.tar.gz cpython-13a6c098c215921e35004f9d3a9b70f601e56500.zip |
bpo-32259: Make a TypeError message when unpack non-iterable more specific. (#4903)
Diffstat (limited to 'Lib/test/test_dataclasses.py')
-rwxr-xr-x | Lib/test/test_dataclasses.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/test/test_dataclasses.py b/Lib/test/test_dataclasses.py index 18ca202ca74..7fbea76ccd8 100755 --- a/Lib/test/test_dataclasses.py +++ b/Lib/test/test_dataclasses.py @@ -866,7 +866,7 @@ class TestCase(unittest.TestCase): self.assertNotEqual(Point3D(1, 2, 3), (1, 2, 3)) # Make sure we can't unpack - with self.assertRaisesRegex(TypeError, 'is not iterable'): + with self.assertRaisesRegex(TypeError, 'unpack'): x, y, z = Point3D(4, 5, 6) # Maka sure another class with the same field names isn't |