pep8: Add compliance with rule E261 test-bots.

This commit is contained in:
Aditya Bansal 2017-06-04 15:00:58 +05:30
parent 8d06b5d9d9
commit 02b855a389
1 changed files with 2 additions and 2 deletions

View File

@ -33,12 +33,12 @@ if __name__ == '__main__':
# 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
if args.bot is not None: if args.bot is not None:
bots_test_dir = dir_join(bots_test_dir, args.bot[0]) bots_test_dir = dir_join(bots_test_dir, args.bot[0])
suite = loader.discover(start_dir=bots_test_dir, top_level_dir=root_dir) suite = loader.discover(start_dir=bots_test_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!')