Skip to content

Commit 2a07526

Browse files
committed
Apply black on tests/aggregate_tests.py
All changes are automatically generated by black. The other linters didn't find any errors in the file. It's expected that most if not all code in aggregate_tests.py will be useful even when we remove the tests file on the old code. Signed-off-by: Martin Vrachev <[email protected]>
1 parent bcb64c4 commit 2a07526

File tree

1 file changed

+13
-10
lines changed

1 file changed

+13
-10
lines changed

tests/aggregate_tests.py

+13-10
Original file line numberDiff line numberDiff line change
@@ -29,13 +29,16 @@
2929
import sys
3030
import unittest
3131

32-
if __name__ == '__main__':
33-
suite = unittest.TestLoader().discover(".")
34-
all_tests_passed = unittest.TextTestRunner(
35-
verbosity=1, buffer=True).run(suite).wasSuccessful()
36-
37-
if not all_tests_passed:
38-
sys.exit(1)
39-
40-
else:
41-
sys.exit(0)
32+
if __name__ == "__main__":
33+
suite = unittest.TestLoader().discover(".")
34+
all_tests_passed = (
35+
unittest.TextTestRunner(verbosity=1, buffer=True)
36+
.run(suite)
37+
.wasSuccessful()
38+
)
39+
40+
if not all_tests_passed:
41+
sys.exit(1)
42+
43+
else:
44+
sys.exit(0)

0 commit comments

Comments
 (0)