hacking: Fix dodgy check

Change-Id: I9a7c09f5076fb595cb9c5e9fa1c2bbaf4b913e78
This commit is contained in:
Stephen Finucane 2019-03-14 17:40:47 +00:00
parent ebb1f1abba
commit 01ff435c65
1 changed files with 1 additions and 1 deletions

View File

@ -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 = []