Python nose配置文件只允许WHERE指定一次
Python nose configuration file only allow WHERE to be speciifed once
在nose.cfg
[nosetests]
where=path1
where=path2
where=path3
只使用最后一个定义。文档说 --where 标志可以多次使用,但这在配置文件中似乎不起作用?
对多个 "where" 参数的支持是 deprecated:
warn("Use of multiple -w arguments is deprecated and "
"support may be removed in a future release. You can "
"get the same behavior by passing directories without "
"the -w argument on the command line, or by using the "
"--tests argument in a configuration file.",
DeprecationWarning)
指定where
一次-定义一个工作目录并在tests
下定义其他路径:
[nosetests]
where=path1
tests=path2,path3
在nose.cfg
[nosetests]
where=path1
where=path2
where=path3
只使用最后一个定义。文档说 --where 标志可以多次使用,但这在配置文件中似乎不起作用?
对多个 "where" 参数的支持是 deprecated:
warn("Use of multiple -w arguments is deprecated and "
"support may be removed in a future release. You can "
"get the same behavior by passing directories without "
"the -w argument on the command line, or by using the "
"--tests argument in a configuration file.",
DeprecationWarning)
指定where
一次-定义一个工作目录并在tests
下定义其他路径:
[nosetests]
where=path1
tests=path2,path3