0
當我使用鼻子測試1.2.1覆蓋時,它會拋出下面的錯誤。Python鼻子引發覆蓋TypeError錯誤
/usr/lib/python2.6/site-packages/tw/core/view.py:223: DeprecationWarning: object.__new__() takes no parameters
obj = object.__new__(cls, *args, **kw)
Traceback (most recent call last):
File "/usr/bin/nosetests", line 9, in <module>
load_entry_point('nose==1.2.1', 'console_scripts', 'nosetests')()
File "/usr/lib/python2.6/site-packages/nose/core.py", line 118, in __init__
**extra_args)
File "/usr/lib64/python2.6/unittest.py", line 815, in __init__
self.parseArgs(argv)
File "/usr/lib/python2.6/site-packages/nose/core.py", line 135, in parseArgs
self.config.configure(argv, doc=self.usage())
File "/usr/lib/python2.6/site-packages/nose/config.py", line 338, in configure
self.plugins.configure(options, self)
File "/usr/lib/python2.6/site-packages/nose/plugins/manager.py", line 284, in configure
cfg(options, config)
File "/usr/lib/python2.6/site-packages/nose/plugins/manager.py", line 99, in __call__
return self.call(*arg, **kw)
File "/usr/lib/python2.6/site-packages/nose/plugins/manager.py", line 167, in simple
result = meth(*arg, **kw)
File "/usr/lib/python2.6/site-packages/nose/plugins/cover.py", line 137, in configure
branch=self.coverBranches, data_suffix=None)
TypeError: __init__() got an unexpected keyword argument 'branch'
任何幫助?謝謝
這似乎是覆蓋部分的問題。你有什麼版本的「報道」?如果它太舊,它可能不支持分支覆蓋,從而拒絕「分支」參數。 – madjar
我正在使用v 3.0.1 –