diff options
author | Ian Stapleton Cordasco <graffatcolmingov@gmail.com> | 2019-10-21 12:32:12 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-10-21 12:32:12 -0500 |
commit | d219c684f117be77927d33146e76a5364161e518 (patch) | |
tree | 594fbd7cac874d2915b6b09a868fcad70ebf91be /testsuite | |
parent | b93125aa67ce201e9194445472fcf54a5a925db9 (diff) | |
parent | 16ec89791f05f9e6a2eb59ae2c778b6439933e86 (diff) | |
download | pep8-d219c684f117be77927d33146e76a5364161e518.tar.gz |
Merge pull request #879 from FichteForks/pr/pep-572
Add support for assignment expressions
Diffstat (limited to 'testsuite')
-rw-r--r-- | testsuite/python38.py | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/testsuite/python38.py b/testsuite/python38.py new file mode 100644 index 0000000..59addad --- /dev/null +++ b/testsuite/python38.py @@ -0,0 +1,12 @@ +#: Okay +if x := 1: + print(x) +if m and (token := m.group(1)): + pass +stuff = [[y := f(x), x / y] for x in range(5)] +#: E225:1:5 +if x:= 1: + pass +#: E225:1:18 +if False or (x :=1): + pass |