| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
1 parent 0acc47a commit fd309f5
1 file changed
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -62,12 +62,13 @@ def main(verbosity=1): | |||
| 62 | 62 | module = __import__(name) | |
| 63 | 63 | suite.addTests((module.test_suite(),)) | |
| 64 | 64 | ||
| 65 | - return unittest.TextTestRunner(verbosity=verbosity).run(suite) | ||
| 65 | + result = unittest.TextTestRunner(verbosity=verbosity).run(suite) | ||
| 66 | + if not result.wasSuccessful(): | ||
| 67 | + raise Exception("Tests failed") | ||
| 66 | 68 | ||
| 67 | 69 | if __name__ == '__main__': | |
| 68 | - result = main(1) | ||
| 70 | + main(1) | ||
| 69 | 71 | if '--pause' in sys.argv: | |
| 70 | 72 | print "Press enter to continue" | |
| 71 | 73 | raw_input() | |
| 72 | - sys.exit(result) | ||
| 73 | 74 | ||
| Back | FazBrowse Home | New Git URL |
0 commit comments