def fillfixtures(function):
try:<EOL><INDENT>request = function._request<EOL><DEDENT>except AttributeError:<EOL><INDENT>fm = function.session._fixturemanager<EOL>fi = fm.getfixtureinfo(function.parent, function.obj, None)<EOL>function._fixtureinfo = fi<EOL>request = function._request = FixtureRequest(function)<EOL>request._fillfixtures()<EOL>newfuncargs = {}<EOL>for name in fi.argnames:<EOL><INDENT>newfuncargs[name] = function.funcargs[name]<EOL><DEDENT>function.funcargs = newfuncargs<EOL><DEDENT>else:<EOL><INDENT>request._fillfixtures()<EOL><DEDENT>
fill missing funcargs for a test function.