gpt4 book ai didi

python - nosetest输出中字符 `S`代表什么

转载 作者:太空狗 更新时间:2023-10-30 00:46:14 24 4
gpt4 key购买 nike

我在一个外部模块上运行 python nosetests。点表示测试通过。 S 代表什么?

c:\vendor\test>nosetests
................................................................................
........................................SS......S.S.............................
.........SSSSSSSSSSSSSSSSSS......S....SSSS.................S..S...SSSSSSSSSSSSSS
SSSSSSSSS.SSSSSSSSSSSSSSSSSSSSS..........SS.....SSSSSSS............
----------------------------------------------------------------------
Ran 327 tests in 629.369s

这似乎很明显,几乎没有提及,无法在文档、手册页和不使用谷歌中找到它。对不起,我不是 python 本地人。

最佳答案

S表示跳过,.表示成功

http://readthedocs.org/docs/nose/en/latest/plugins/skip.html

This plugin installs a SKIP error class for the SkipTest exception. When SkipTest is raised, the exception will be logged in the skipped attribute of the result, ‘S’ or ‘SKIP’ (verbose) will be output, and the exception will not be counted as an error or failure.

关于python - nosetest输出中字符 `S`代表什么,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/10471696/

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