471,595 Members | 1,092 Online
Bytes | Software Development & Data Engineering Community
Post +

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 471,595 software developers and data experts.

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 1415
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 XIAOLAOHU | last post: by

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.