[py-svn] py-trunk commit f05c260e91fa: if a funcarg is misspelled/missing, hint at using "--funcargs"

commits-noreply at bitbucket.org commits-noreply at bitbucket.org
Sun Feb 7 02:15:58 CET 2010


# HG changeset patch -- Bitbucket.org
# Project py-trunk
# URL http://bitbucket.org/hpk42/py-trunk/overview/
# User holger krekel <holger at merlinux.eu>
# Date 1265505347 -3600
# Node ID f05c260e91fa7bd2b9bb1724a0ca8ce733ae1812
# Parent 480938f9813a5ac7c1d96c779a02595d2ee14635
if a funcarg is misspelled/missing, hint at using "--funcargs"

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



More information about the pytest-commit mailing list