Skip to content

Commit

Permalink
update test suites
Browse files Browse the repository at this point in the history
  • Loading branch information
hhatto committed Oct 27, 2023
1 parent 0a13134 commit 2f2b821
Show file tree
Hide file tree
Showing 4 changed files with 45 additions and 12 deletions.
11 changes: 5 additions & 6 deletions test/suite/E10.py
Original file line number Diff line number Diff line change
@@ -1,8 +1,3 @@
#: E101 W191
for a in 'abc':
for b in 'xyz':
print a # indented with 8 spaces
print b # indented with 1 tab
#: E101 E122 W191 W191
if True:
pass
Expand Down Expand Up @@ -38,4 +33,8 @@ def test_keys(self):
u'Norrbotten',
u'V\xe4sterbotten',
])
#:
#: E101 W191
if True:
print("""
tab at start of this line
""")
16 changes: 16 additions & 0 deletions test/suite/E90.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
#: E901
= [x
#: E901 E101 W191
while True:
try:
pass
except:
print 'Whoops'
#: Okay

# Issue #119
# Do not crash with Python2 if the line endswith '\r\r\n'
EMPTY_SET = set()
SET_TYPE = type(EMPTY_SET)
toto = 0 + 0
#:
Expand Down
13 changes: 7 additions & 6 deletions test/suite/out/E10.py
Original file line number Diff line number Diff line change
@@ -1,8 +1,3 @@
#: E101 W191
for a in 'abc':
for b in 'xyz':
print a # indented with 8 spaces
print b # indented with 1 tab
#: E101 E122 W191 W191
if True:
pass
Expand Down Expand Up @@ -41,4 +36,10 @@ def test_keys(self):
u'Norrbotten',
u'V\xe4sterbotten',
])
#:


#: E101 W191
if True:
print("""
tab at start of this line
""")
17 changes: 17 additions & 0 deletions test/suite/out/E90.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
#: E901
= [x
#: E901 E101 W191
while True:
try:
pass
except:
print 'Whoops'
#: Okay

# Issue #119
# Do not crash with Python2 if the line endswith '\r\r\n'
EMPTY_SET = set()
SET_TYPE = type(EMPTY_SET)

toto = 0 + 0
#:

0 comments on commit 2f2b821

Please sign in to comment.