Commit 4fb5ff86 authored by Damien George's avatar Damien George
Browse files

tests: Add test for evaluation order of dictionary key/value pairs.

In Python 3.4 the value is evaluated before the key.  In Python 3.5 it's
key then value.
parent 9f5f156b
......@@ -9,6 +9,9 @@ def print_ret(x):
return x
f4(*print_ret(['a', 'b']), kw_arg=print_ret(None))
# test evaluation order of dictionary key/value pair (in 3.4 it's backwards)
{print_ret(1):print_ret(2)}
# from basics/syntaxerror.py
# can't have multiple * or ** (in 3.5 we can)
def test_syntax(code):
......
None
['a', 'b']
('a', 'b') {'kw_arg': None}
2
1
SyntaxError
SyntaxError
3.4
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment