Merge "hacking: Fix dodgy check"

This commit is contained in:
Zuul 2019-04-08 18:13:09 +00:00 committed by Gerrit Code Review
commit 753b143114
1 changed files with 1 additions and 1 deletions

View File

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