From 13488dd5408d209e53c2ca27f99ccfec446e5baf Mon Sep 17 00:00:00 2001 From: holger krekel Date: Sun, 7 Feb 2010 02:15:47 +0100 Subject: [PATCH] if a funcarg is misspelled/missing, hint at using "--funcargs" --HG-- branch : trunk --- py/_test/funcargs.py | 1 + 1 file changed, 1 insertion(+) diff --git a/py/_test/funcargs.py b/py/_test/funcargs.py index 24f3c1333..4209acac2 100644 --- a/py/_test/funcargs.py +++ b/py/_test/funcargs.py @@ -172,4 +172,5 @@ class FuncargRequest: fspath, lineno, msg = self._pyfuncitem.reportinfo() msg = "LookupError: no factory found for function argument %r" % (argname,) msg += "\n available funcargs: %s" %(", ".join(available),) + msg += "\n use 'py.test --funcargs [testpath]' for help on them." raise self.LookupError(msg)