Command-line invocation of unittests from __main__ failing

拟墨画扇 提交于 2019-12-08 16:07:35

The problem is that I was running the two scripts in different ways:

$ python s1c5.py

and

$ python s1c6.py s1c6.txt

Since unittest.main() parses command line arguments, there is an error in the second case. If I pass a command line argument to the first program, I also get the same error.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!