Unittest causing sys.exit()

前端 未结 6 887
死守一世寂寞
死守一世寂寞 2020-12-08 16:03

No matter what I do sys.exit() is called by unittest, even the most trivial examples. I can\'t tell if my install is messed up or what is going on.

IDLE 1.2         


        
6条回答
  •  鱼传尺愫
    2020-12-08 16:43

    In new Python 2.7 release, unittest.main() has a new argument.

    If 'exit' is set to False, sys.exit() is not called during the execution of unittest.main().

提交回复
热议问题