Skip to content

Commit

Permalink
Make the test run fail if a test fails.
Browse files Browse the repository at this point in the history
  • Loading branch information
scoder committed Jan 10, 2025
1 parent 62293ee commit 1c5be51
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lupa/tests/__main__.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
if __name__ == '__main__':
import sys
import unittest
from . import suite
unittest.TextTestRunner(verbosity=2).run(suite())
sys.exit(1 if unittest.TextTestRunner(verbosity=2).run(suite()).failures else 0)

0 comments on commit 1c5be51

Please sign in to comment.