unittest exits

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Alan Baljeu

    #1

    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/
  • Ben Finney

    #2
    Re: unittest exits

    Alan Baljeu <alanbaljeu@yah oo.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

    Comment

    Working...