if a funcarg is misspelled/missing, hint at using "--funcargs"

--HG--
branch : trunk
This commit is contained in:
holger krekel 2010-02-07 02:15:47 +01:00
parent ac1eed545c
commit 13488dd540
1 changed files with 1 additions and 0 deletions

View File

@ -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)