Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我正在使用鼻子测试来测试几个脚本。但是当我运行鼻子测试时,它会打印出日志记录。我知道它将日志信息存储到 sys.stderr 中。有谁知道如何阻止它输出到屏幕?
我只想像正常运行 unittest 时一样输出测试结果。
谢谢你的帮助
找到了答案,
nosetests test* --nologcapture --nocapture
在命令行中运行它。
谢谢