unittest exits
Ben Finney
bignose+hates-spam at benfinney.id.au
Thu Nov 13 19:11:46 EST 2008
Alan Baljeu <alanbaljeu at yahoo.com> writes:
> When I call unittest.main(), it invokes sys.exit(). I would like to
> run tests without exiting. How can I?
Use a ‘TestRunner’ instance, instead of ‘main()’.
--
\ “If you go flying back through time and you see somebody else |
`\ flying forward into the future, it's probably best to avoid eye |
_o__) contact.” —Jack Handey |
Ben Finney
More information about the Python-list
mailing list