我正在使用 nosetests 来测试几个脚本。但是当我运行 nosetests 时,它会打印出日志记录。我知道它将日志信息存储到 sys.stderr 中。有谁知道如何阻止它输出到屏幕?
我只想像正常运行 unittest 时那样输出测试结果。
感谢您的帮助
最佳答案
找到答案,
nosetests test* --nologcapture --nocapture
在命令行中运行它。
谢谢
关于python - 如何使用 nosetests 从输出中删除调试,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/2818766/