From 18e784c9c92f581c2e2385ec991e19182e0221a1 Mon Sep 17 00:00:00 2001 From: holger krekel Date: Sun, 6 Mar 2011 08:56:58 +0100 Subject: [PATCH] re-introduce pytest._fillfuncargs - it's actually used by oejskit, added a test documenting this. --- _pytest/python.py | 2 +- testing/test_python.py | 4 ++++ 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/_pytest/python.py b/_pytest/python.py index 0feb9785c..61a3f63c9 100644 --- a/_pytest/python.py +++ b/_pytest/python.py @@ -34,7 +34,7 @@ def pytest_namespace(): 'collect': { 'Module': Module, 'Class': Class, 'Instance': Instance, 'Function': Function, 'Generator': Generator, - } + '_fillfuncargs': fillfuncargs} } def pytest_funcarg__pytestconfig(request): diff --git a/testing/test_python.py b/testing/test_python.py index 7d29ba612..76d1041f3 100644 --- a/testing/test_python.py +++ b/testing/test_python.py @@ -517,6 +517,10 @@ def test_callspec_repr(): repr(cs) class TestFillFuncArgs: + def test_fillfuncargs_exposed(self): + # used by oejskit + assert pytest._fillfuncargs == funcargs.fillfuncargs + def test_funcarg_lookupfails(self, testdir): testdir.makeconftest(""" def pytest_funcarg__xyzsomething(request):