Merge "hacking: Fix dodgy check"
This commit is contained in:
commit
753b143114
|
@ -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 = []
|
||||
|
|
Loading…
Reference in New Issue