Skip to content

Commit 4b382fb

Browse files
committed
[master-next] fix flake8 complaints about test/swift_test.py
The python-lint test was failing with: ./test/swift_test.py:35:1: W293 blank line contains whitespace ./test/swift_test.py:36:80: E501 line too long (87 > 79 characters) ./test/swift_test.py:37:80: E501 line too long (84 > 79 characters) ./test/swift_test.py:40:80: E501 line too long (82 > 79 characters) ./test/swift_test.py:41:26: E701 multiple statements on one line (colon)
1 parent aa62883 commit 4b382fb

File tree

1 file changed

+8
-6
lines changed

1 file changed

+8
-6
lines changed

test/swift_test.py

+8-6
Original file line numberDiff line numberDiff line change
@@ -32,13 +32,15 @@ def __init__(self, coverage_mode=None, execute_external=True):
3232

3333
def before_test(self, test, litConfig):
3434
_, tmp_base = lit.TestRunner.getTempPaths(test)
35-
36-
# Apparently despite the docs, tmpDir is not actually unique for each test, but
37-
# tmpBase is. Remove it here and add a tmpBase substitution in before_test.
38-
# Speculative fix for rdar://32928464.
35+
36+
# Apparently despite the docs, tmpDir is not actually unique for each
37+
# test, but tmpBase is. Remove it here and add a tmpBase substitution
38+
# in before_test. Speculative fix for rdar://32928464.
3939
try:
40-
percentT_index = [x[0] for x in test.config.substitutions].index('%T')
41-
except ValueError: pass
40+
percentT_index = \
41+
[x[0] for x in test.config.substitutions].index('%T')
42+
except ValueError:
43+
pass
4244
else:
4345
test.config.substitutions.pop(percentT_index)
4446

0 commit comments

Comments
 (0)