By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
439,941 Members | 1,789 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 439,941 IT Pros & Developers. It's quick & easy.

unittest exits

P: n/a
When I call unittest.main(), it invokes sys.exit(). I would like to run tests without exiting. How can I?
Alan Baljeu
__________________________________________________ ________________
Instant Messaging, free SMS, sharing photos and more... Try the new Yahoo! Canada Messenger at http://ca.beta.messenger.yahoo.com/
Nov 13 '08 #1
Share this Question
Share on Google+
1 Reply


P: n/a
Alan Baljeu <al********@yahoo.comwrites:
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
Nov 14 '08 #2

This discussion thread is closed

Replies have been disabled for this discussion.