Skip to content

Commit 4178c7e

Browse files
committed
Add tests relevant for issue #220
1 parent 83a5688 commit 4178c7e

File tree

2 files changed

+12
-2
lines changed

2 files changed

+12
-2
lines changed

testsuite/E12.py

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -347,11 +347,17 @@ def example_issue254():
347347
),
348348
dict(name=token.undefined)
349349
)]
350-
#: E125
350+
#: E125:2:5 E125:8:5
351351
if ("""
352352
"""):
353353
pass
354-
#: E122 E122 E122
354+
355+
for foo in """
356+
abc
357+
123
358+
""".strip().split():
359+
print(foo)
360+
#: E122:6:5 E122:7:5 E122:8:1
355361
print dedent(
356362
'''
357363
mkdir -p ./{build}/

testsuite/E22.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,10 @@
1313
x = f(x) + 1
1414
y = long_variable + 2
1515
z = x[0] + 3
16+
#: E221:3:14
17+
text = """
18+
bar
19+
foo %s""" % rofl
1620
#: Okay
1721
x = 1
1822
y = 2

0 commit comments

Comments
 (0)