if a funcarg is misspelled/missing, hint at using "--funcargs"
--HG-- branch : trunk
This commit is contained in:
parent
ac1eed545c
commit
13488dd540
|
@ -172,4 +172,5 @@ class FuncargRequest:
|
||||||
fspath, lineno, msg = self._pyfuncitem.reportinfo()
|
fspath, lineno, msg = self._pyfuncitem.reportinfo()
|
||||||
msg = "LookupError: no factory found for function argument %r" % (argname,)
|
msg = "LookupError: no factory found for function argument %r" % (argname,)
|
||||||
msg += "\n available funcargs: %s" %(", ".join(available),)
|
msg += "\n available funcargs: %s" %(", ".join(available),)
|
||||||
|
msg += "\n use 'py.test --funcargs [testpath]' for help on them."
|
||||||
raise self.LookupError(msg)
|
raise self.LookupError(msg)
|
||||||
|
|
Loading…
Reference in New Issue