diff options
author | Florent Xicluna <florent.xicluna@gmail.com> | 2014-12-16 01:15:15 +0100 |
---|---|---|
committer | Florent Xicluna <florent.xicluna@gmail.com> | 2014-12-16 01:15:15 +0100 |
commit | f87bf238186741169a62ee0e9827068c209bed6f (patch) | |
tree | a2872531647fb4a8328e4032ffc17daaac557b17 /testsuite | |
parent | bbe349e1bed836349ab1c39bdd7b3a9c85979443 (diff) | |
parent | f925a0e017ec686f9f638a8038dc5e0d0161d6d7 (diff) | |
download | pep8-f87bf238186741169a62ee0e9827068c209bed6f.tar.gz |
Merge pull request #312 from sigmavirus24/bug/311
Fix #311. Add regex to check for field assignment
Diffstat (limited to 'testsuite')
-rw-r--r-- | testsuite/E73.py | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/testsuite/E73.py b/testsuite/E73.py index 0673e0f..aab8a24 100644 --- a/testsuite/E73.py +++ b/testsuite/E73.py @@ -5,3 +5,14 @@ f = lambda x: 2*x #: E731:2:5 while False: this = lambda y, z: 2 * x +#: Okay +f = object() +f.method = lambda: 'Method' +#: Okay +f = {} +f['a'] = lambda x: x ** 2 +#: Okay +f = [] +f.append(lambda x: x ** 2) +#: Okay +lambda: 'no-op' |