summaryrefslogtreecommitdiff
path: root/testsuite/E22.py
diff options
context:
space:
mode:
authorFlorent Xicluna <florent.xicluna@gmail.com>2014-05-29 19:14:06 +0200
committerFlorent Xicluna <florent.xicluna@gmail.com>2014-05-29 19:14:06 +0200
commit2d072332abb69ba024329ea333954998be280221 (patch)
treed4667815ad44d320a7b31f30e5bbae84a2caf864 /testsuite/E22.py
parent164066c4d85f212f5f4a11699b848942c678b947 (diff)
parentd6d2f0b2ec50ffce2d1ad469fbd4e2b1642cfa0f (diff)
downloadpep8-2d072332abb69ba024329ea333954998be280221.tar.gz
Report E731 for lambda assignment, return E704 for one-liner def instead of E701; issue #277
Diffstat (limited to 'testsuite/E22.py')
-rw-r--r--testsuite/E22.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/testsuite/E22.py b/testsuite/E22.py
index 43a6f3f..56af307 100644
--- a/testsuite/E22.py
+++ b/testsuite/E22.py
@@ -135,8 +135,8 @@ baz(**kwargs)
negative = -1
spam(-1)
-negative
-lambda *args, **kw: (args, kw)
-lambda a, b=h[:], c=0: (a, b, c)
+func1(lambda *args, **kw: (args, kw))
+func2(lambda a, b=h[:], c=0: (a, b, c))
if not -5 < x < +5:
print >>sys.stderr, "x is out of range."
print >> sys.stdout, "x is an integer."