Skip to content

Commit 41540f1

Browse files
[Python] Fix two pylint warnings in swift-bench.py
Prior to this commit: ``` $ pylint utils/swift-bench.py 2>&1 | grep '(no-member)' E:360,12: Instance of 'Test' has no 'results' member (no-member) E:364,18: Instance of 'Test' has no 'output' member (no-member) $ ``` After this commit: ``` $ pylint utils/swift-bench.py 2>&1 | grep '(no-member)' $ ```
1 parent c14d868 commit 41540f1

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

utils/swift-bench.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -352,12 +352,15 @@ def __init__(self, name, source, processed_source, binary):
352352
self.processed_source = processed_source
353353
self.binary = binary
354354
self.status = ""
355+
self.results = None
356+
self.output = None
355357

356358
def do_print(self):
357359
print("NAME: %s" % self.name)
358360
print("SOURCE: %s" % self.source)
359361
if self.status == "":
360-
self.results.do_print()
362+
if self.results is not None:
363+
self.results.do_print()
361364
else:
362365
print("STATUS: %s" % self.status)
363366
print("OUTPUT:")

0 commit comments

Comments
 (0)