diff options
author | Berker Peksag <berker.peksag@gmail.com> | 2016-03-06 14:50:15 (GMT) |
---|---|---|
committer | Berker Peksag <berker.peksag@gmail.com> | 2016-03-06 14:50:15 (GMT) |
commit | d66dd5ce68cbf4a33c385439d5eeb2bff4e860f1 (patch) | |
tree | 2a110e9d32aa7ad9aa1b0e44845628c526d11925 /Lib | |
parent | e88dd1c32c2961e0fe40b09c48904451fa1eba9a (diff) | |
download | cpython-d66dd5ce68cbf4a33c385439d5eeb2bff4e860f1.zip cpython-d66dd5ce68cbf4a33c385439d5eeb2bff4e860f1.tar.gz cpython-d66dd5ce68cbf4a33c385439d5eeb2bff4e860f1.tar.bz2 |
Issue #26489: Add dictionary unpacking support to Tools/parser/unparse.py
Patch by Guo Ci Teo.
Diffstat (limited to 'Lib')
-rw-r--r-- | Lib/test/test_tools/test_unparse.py | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/Lib/test/test_tools/test_unparse.py b/Lib/test/test_tools/test_unparse.py index 976a6c5..734bbc2 100644 --- a/Lib/test/test_tools/test_unparse.py +++ b/Lib/test/test_tools/test_unparse.py @@ -250,6 +250,11 @@ class UnparseTestCase(ASTTestCase): def test_with_two_items(self): self.check_roundtrip(with_two_items) + def test_dict_unpacking_in_dict(self): + # See issue 26489 + self.check_roundtrip(r"""{**{'y': 2}, 'x': 1}""") + self.check_roundtrip(r"""{**{'y': 2}, **{'x': 1}}""") + class DirectoryTestCase(ASTTestCase): """Test roundtrip behaviour on all files in Lib and Lib/test.""" |