gpt4 book ai didi

python - Nosetests 进行了 0 次测试

转载 作者:行者123 更新时间:2023-11-30 23:49:04 26 4
gpt4 key购买 nike

当我运行时

nosetests --doctest-extension=.txt

我明白了

Ran 0 tests in 0.002s

OK

当我在 README.txt 文件中有测试时,为什么它显示 0 个测试?

最佳答案

如果您使用 doctest,您还必须指定 nose 必须在启用 doctest 插件的情况下运行。

这应该可以解决问题:

nosetests --with-doctest --doctest-extension=txt

关于python - Nosetests 进行了 0 次测试,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/7786195/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com