Skip to content

Commit 1c5be51

Browse files
committed
Make the test run fail if a test fails.
1 parent 62293ee commit 1c5be51

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

lupa/tests/__main__.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
if __name__ == '__main__':
2+
import sys
23
import unittest
34
from . import suite
4-
unittest.TextTestRunner(verbosity=2).run(suite())
5+
sys.exit(1 if unittest.TextTestRunner(verbosity=2).run(suite()).failures else 0)

0 commit comments

Comments
 (0)