diff options
author | Jörn Heissler <joernheissler@users.noreply.github.com> | 2019-06-22 14:40:55 (GMT) |
---|---|---|
committer | Miss Islington (bot) <31488909+miss-islington@users.noreply.github.com> | 2019-06-22 14:40:55 (GMT) |
commit | c8a35417db8853a253517a3e5190e174075c6384 (patch) | |
tree | 760e1a6590e7244315d4c8ac35acc8a0a6f6b736 /Lib/test/test_parser.py | |
parent | bb110cc2ed81447fb48805f31146cf31323a8fc3 (diff) | |
download | cpython-c8a35417db8853a253517a3e5190e174075c6384.zip cpython-c8a35417db8853a253517a3e5190e174075c6384.tar.gz cpython-c8a35417db8853a253517a3e5190e174075c6384.tar.bz2 |
bpo-35224: Reverse evaluation order of key: value in dict comprehensions (GH-14139)
… as proposed in PEP 572; key is now evaluated before value.
https://bugs.python.org/issue35224
Diffstat (limited to 'Lib/test/test_parser.py')
-rw-r--r-- | Lib/test/test_parser.py | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/Lib/test/test_parser.py b/Lib/test/test_parser.py index b830459..e5285c6 100644 --- a/Lib/test/test_parser.py +++ b/Lib/test/test_parser.py @@ -473,6 +473,8 @@ class RoundtripLegalSyntaxTestCase(unittest.TestCase): self.check_suite("foo(b := 2, a=1)") self.check_suite("foo((b := 2), a=1)") self.check_suite("foo(c=(b := 2), a=1)") + self.check_suite("{(x := C(i)).q: x for i in y}") + # # Second, we take *invalid* trees and make sure we get ParserError |