diff options
author | Florent Xicluna <florent.xicluna@gmail.com> | 2014-04-03 23:23:12 +0200 |
---|---|---|
committer | Florent Xicluna <florent.xicluna@gmail.com> | 2014-04-03 23:23:12 +0200 |
commit | 4178c7e6f22de9b71b0c40d66f5407fe93e8439a (patch) | |
tree | c6e4ed093c88632e592f07c41d10014a8a7aadf9 | |
parent | 83a5688181ed3fac058cd1b9b15f885e47578409 (diff) | |
download | pep8-4178c7e6f22de9b71b0c40d66f5407fe93e8439a.tar.gz |
Add tests relevant for issue #220
-rw-r--r-- | testsuite/E12.py | 10 | ||||
-rw-r--r-- | testsuite/E22.py | 4 |
2 files changed, 12 insertions, 2 deletions
diff --git a/testsuite/E12.py b/testsuite/E12.py index 6a7de9d..84650f1 100644 --- a/testsuite/E12.py +++ b/testsuite/E12.py @@ -347,11 +347,17 @@ if True: ), dict(name=token.undefined) )] -#: E125 +#: E125:2:5 E125:8:5 if (""" """): pass -#: E122 E122 E122 + +for foo in """ + abc + 123 + """.strip().split(): + print(foo) +#: E122:6:5 E122:7:5 E122:8:1 print dedent( ''' mkdir -p ./{build}/ diff --git a/testsuite/E22.py b/testsuite/E22.py index f7eeaa0..2ff470b 100644 --- a/testsuite/E22.py +++ b/testsuite/E22.py @@ -13,6 +13,10 @@ long_variable = 3 x = f(x) + 1 y = long_variable + 2 z = x[0] + 3 +#: E221:3:14 +text = """ + bar + foo %s""" % rofl #: Okay x = 1 y = 2 |