hacking: Fix dodgy check
Change-Id: I9a7c09f5076fb595cb9c5e9fa1c2bbaf4b913e78
This commit is contained in:
parent
ebb1f1abba
commit
01ff435c65
|
@ -486,7 +486,7 @@ class CheckForUncalledTestClosure(BaseASTChecker):
|
|||
def visit_FunctionDef(self, node):
|
||||
# self._filename is 'stdin' in the unit test for this check.
|
||||
if (not os.path.basename(self._filename).startswith('test_') and
|
||||
not 'stdin'):
|
||||
os.path.basename(self._filename) != 'stdin'):
|
||||
return
|
||||
|
||||
closures = []
|
||||
|
|
Loading…
Reference in New Issue