On 13 Nov., 20:20, "Chris Rebert" <c... at rebertia.com> wrote: > try: > unittest.main() > except SystemExit: > pass You most probably want this instead: try: unittest.main() except SystemExit, exc: # only exit if tests failed if exc.code: raise