test-bots: Fix lint errors.

This commit is contained in:
Tim Abbott 2017-06-07 14:02:27 -07:00
parent 8f2fc6069d
commit f94bfd6de4

View file

@ -34,11 +34,11 @@ if __name__ == '__main__':
# type: (str) -> None # type: (str) -> None
# mypy doesn't recognize the TestLoader attribute, even though the code # mypy doesn't recognize the TestLoader attribute, even though the code
# is executable # is executable
loader = unittest.TestLoader() # type: ignore loader = unittest.TestLoader() # type: ignore
suite = loader.discover(start_dir=start_dir, top_level_dir=root_dir) suite = loader.discover(start_dir=start_dir, top_level_dir=root_dir)
runner = unittest.TextTestRunner(verbosity=2) runner = unittest.TextTestRunner(verbosity=2)
# same issue as for TestLoader # same issue as for TestLoader
result = runner.run(suite) # type: ignore result = runner.run(suite) # type: ignore
if result.errors or result.failures: if result.errors or result.failures:
raise Exception('Test failed!') raise Exception('Test failed!')