469,271 Members | 1,431 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 469,271 developers. It's quick & easy.

unittest exits

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
1 1385
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.

Similar topics

reply views Thread by Remy Blank | last post: by
1 post views Thread by Thomas Heller | last post: by
41 posts views Thread by Roy Smith | last post: by
7 posts views Thread by Jorgen Grahn | last post: by
3 posts views Thread by David Vincent | last post: by
2 posts views Thread by Oleg Paraschenko | last post: by
reply views Thread by Chris Fonnesbeck | last post: by
1 post views Thread by Chris Fonnesbeck | last post: by
1 post views Thread by Chris Rebert | last post: by
reply views Thread by zhoujie | last post: by
reply views Thread by suresh191 | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.