Tests succeed, still get traceback

后端 未结 5 1246
悲哀的现实
悲哀的现实 2021-01-04 01:53

I\'m using Python\'s unittest library and all the tests succeed, but I still get a traceback and I can\'t understand how I can fix the problem.

         


        
5条回答
  •  渐次进展
    2021-01-04 02:42

    To avoid the end of execution traceback:

    if __name__ == '__main__':
        unittest.main(exit=False)
    

提交回复
热议问题