summaryrefslogtreecommitdiff
path: root/testsuite
diff options
context:
space:
mode:
authorFlorent Xicluna <florent.xicluna@gmail.com>2014-12-16 01:15:15 +0100
committerFlorent Xicluna <florent.xicluna@gmail.com>2014-12-16 01:15:15 +0100
commitf87bf238186741169a62ee0e9827068c209bed6f (patch)
treea2872531647fb4a8328e4032ffc17daaac557b17 /testsuite
parentbbe349e1bed836349ab1c39bdd7b3a9c85979443 (diff)
parentf925a0e017ec686f9f638a8038dc5e0d0161d6d7 (diff)
downloadpep8-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.py11
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'