py35 develop-inst-noop: /Users/jmoldow/repos/pytest py35 installed: hypothesis==3.4.2,mock==2.0.0,nose==1.3.7,pbr==1.10.0,py==1.4.31,-e git+https://github.com/pytest-dev/pytest.git@7660a19d0a39adb9724b9acba05e64acf3fcc5ac#egg=pytest,requests==2.11.1,six==1.10.0 py35 runtests: PYTHONHASHSEED='214807748' py35 runtests: commands[0] | pytest --lsof -rfsxX -- testing/python/fixture.py ============================= test session starts ============================== platform darwin -- Python 3.5.0, pytest-3.0.3.dev0, py-1.4.31, pluggy-0.3.1 rootdir: /Users/jmoldow/repos/pytest, inifile: tox.ini plugins: hypothesis-3.4.2 collected 160 items testing/python/fixture.py ............FF..........................................................x....................................................................................... =========================== short test summary info ============================ FAIL testing/python/fixture.py::TestFillFixtures::()::test_extend_parametrized_fixture FAIL testing/python/fixture.py::TestFillFixtures::()::test_extend_fixture_with_parametrized_dependency XFAIL testing/python/fixture.py::TestAutouseDiscovery::()::test_setup_enabled_functionnode 'enabled' feature not implemented =================================== FAILURES =================================== ______________ TestFillFixtures.test_extend_parametrized_fixture _______________ self = testdir = def test_extend_parametrized_fixture(self, testdir): testdir.makeconftest(""" import pytest @pytest.fixture(params=[1]) def foo(request): return request.param """) testfile = testdir.makepyfile(""" import pytest @pytest.fixture def foo(foo): return foo * 2 def test_spam(foo): assert foo == 2 """) result = testdir.runpytest(testfile) > result.stdout.fnmatch_lines(["*1 passed*"]) E Failed: nomatch: '*1 passed*' E and: '============================= test session starts ==============================' E and: 'platform darwin -- Python 3.5.0, pytest-3.0.3.dev0, py-1.4.31, pluggy-0.3.1' E and: 'rootdir: /private/var/folders/_7/lh86jmls2wb_5hxdyp69sc898yf10t/T/pytest-of-jmoldow/pytest-67/testdir/test_extend_parametrized_fixture0, inifile: ' E and: 'plugins: hypothesis-3.4.2' E and: 'collected 1 items' E and: '' E and: 'test_extend_parametrized_fixture.py E' E and: '' E and: '==================================== ERRORS ====================================' E and: '_________________________ ERROR at setup of test_spam __________________________' E and: '' E and: "self = >" E and: "fixturedef = " E and: '' E and: ' def _getfixturevalue(self, fixturedef):' E and: ' # prepare a subrequest object before calling fixture function' E and: ' # (latter managed by fixturedef)' E and: ' argname = fixturedef.argname' E and: ' funcitem = self._pyfuncitem' E and: ' scope = fixturedef.scope' E and: ' try:' E and: '> param = funcitem.callspec.getparam(argname)' E and: "E AttributeError: 'Function' object has no attribute 'callspec'" E and: '' E and: '/Users/jmoldow/repos/pytest/_pytest/fixtures.py:487: AttributeError' E and: '' E and: 'During handling of the above exception, another exception occurred:' E and: '' E and: "self = ' E and: 'func = . at 0x1034838c8>' E and: "when = 'setup'" E and: '' E and: ' def __init__(self, func, when):' E and: ' #: context of invocation: one of "setup", "call",' E and: ' #: "teardown", "memocollect"' E and: ' self.when = when' E and: ' self.start = time()' E and: ' try:' E and: '> self.result = func()' E and: '' E and: '/Users/jmoldow/repos/pytest/_pytest/runner.py:163: ' E and: '_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ' E and: '/Users/jmoldow/repos/pytest/_pytest/runner.py:151: in ' E and: ' return CallInfo(lambda: ihook(item=item, **kwds), when=when)' E and: '/Users/jmoldow/repos/pytest/_pytest/vendored_packages/pluggy.py:724: in __call__' E and: ' return self._hookexec(self, self._nonwrappers + self._wrappers, kwargs)' E and: '/Users/jmoldow/repos/pytest/_pytest/vendored_packages/pluggy.py:338: in _hookexec' E and: ' return self._inner_hookexec(hook, methods, kwargs)' E and: '/Users/jmoldow/repos/pytest/_pytest/vendored_packages/pluggy.py:301: in __call__' E and: ' return outcome.get_result()' E and: '/Users/jmoldow/repos/pytest/_pytest/vendored_packages/pluggy.py:278: in get_result' E and: ' raise ex[1].with_traceback(ex[2])' E and: '/Users/jmoldow/repos/pytest/_pytest/vendored_packages/pluggy.py:264: in __init__' E and: ' self.result = func()' E and: '/Users/jmoldow/repos/pytest/_pytest/vendored_packages/pluggy.py:299: in ' E and: ' outcome = _CallOutcome(lambda: self.oldcall(hook, hook_impls, kwargs))' E and: '/Users/jmoldow/repos/pytest/_pytest/vendored_packages/pluggy.py:333: in ' E and: ' _MultiCall(methods, kwargs, hook.spec_opts).execute()' E and: '/Users/jmoldow/repos/pytest/_pytest/vendored_packages/pluggy.py:595: in execute' E and: ' return _wrapped_call(hook_impl.function(*args), self.execute)' E and: '/Users/jmoldow/repos/pytest/_pytest/vendored_packages/pluggy.py:253: in _wrapped_call' E and: ' return call_outcome.get_result()' E and: '/Users/jmoldow/repos/pytest/_pytest/vendored_packages/pluggy.py:278: in get_result' E and: ' raise ex[1].with_traceback(ex[2])' E and: '/Users/jmoldow/repos/pytest/_pytest/vendored_packages/pluggy.py:264: in __init__' E and: ' self.result = func()' E and: '/Users/jmoldow/repos/pytest/_pytest/vendored_packages/pluggy.py:596: in execute' E and: ' res = hook_impl.function(*args)' E and: '/Users/jmoldow/repos/pytest/_pytest/runner.py:100: in pytest_runtest_setup' E and: ' item.session._setupstate.prepare(item)' E and: '/Users/jmoldow/repos/pytest/_pytest/runner.py:453: in prepare' E and: ' col.setup()' E and: '/Users/jmoldow/repos/pytest/_pytest/python.py:1555: in setup' E and: ' fixtures.fillfixtures(self)' E and: '/Users/jmoldow/repos/pytest/_pytest/fixtures.py:252: in fillfixtures' E and: ' request._fillfixtures()' E and: '/Users/jmoldow/repos/pytest/_pytest/fixtures.py:397: in _fillfixtures' E and: ' item.funcargs[argname] = self.getfixturevalue(argname)' E and: '/Users/jmoldow/repos/pytest/_pytest/fixtures.py:439: in getfixturevalue' E and: ' return self._get_active_fixturedef(argname).cached_result[0]' E and: '/Users/jmoldow/repos/pytest/_pytest/fixtures.py:464: in _get_active_fixturedef' E and: ' result = self._getfixturevalue(fixturedef)' E and: '/Users/jmoldow/repos/pytest/_pytest/fixtures.py:529: in _getfixturevalue' E and: ' val = fixturedef.execute(request=subrequest)' E and: '/Users/jmoldow/repos/pytest/_pytest/fixtures.py:744: in execute' E and: ' fixturedef = request._get_active_fixturedef(argname)' E and: '/Users/jmoldow/repos/pytest/_pytest/fixtures.py:464: in _get_active_fixturedef' E and: ' result = self._getfixturevalue(fixturedef)' E and: '_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ' E and: '' E and: "self = >" E and: "fixturedef = " E and: '' E and: ' def _getfixturevalue(self, fixturedef):' E and: ' # prepare a subrequest object before calling fixture function' E and: ' # (latter managed by fixturedef)' E and: ' argname = fixturedef.argname' E and: ' funcitem = self._pyfuncitem' E and: ' scope = fixturedef.scope' E and: ' try:' E and: ' param = funcitem.callspec.getparam(argname)' E and: ' except (AttributeError, ValueError):' E and: ' param = NOTSET' E and: ' param_index = 0' E and: ' if fixturedef.params is not None:' E and: ' frame = inspect.stack()[3]' E and: ' frameinfo = inspect.getframeinfo(frame[0])' E and: ' source_path = frameinfo.filename' E and: ' source_lineno = frameinfo.lineno' E and: ' source_path = py.path.local(source_path)' E and: ' if source_path.relto(funcitem.config.rootdir):' E and: ' source_path = source_path.relto(funcitem.config.rootdir)' E and: ' msg = (' E and: ' "The requested fixture has no parameter defined for the "' E and: ' "current test.\\n\\nRequested fixture \'{0}\' defined in:\\n{1}"' E and: ' "\\n\\nRequested here:\\n{2}:{3}".format(' E and: ' fixturedef.argname,' E and: ' getlocation(fixturedef.func, funcitem.config.rootdir),' E and: ' source_path,' E and: ' source_lineno,' E and: ' )' E and: ' )' E and: '> pytest.fail(msg)' E and: 'E Failed: The requested fixture has no parameter defined for the current test.' E and: 'E ' E and: "E Requested fixture 'foo' defined in:" E and: 'E conftest.py:4' E and: 'E ' E and: 'E Requested here:' E and: 'E /Users/jmoldow/repos/pytest/_pytest/fixtures.py:529' E and: '' E and: '/Users/jmoldow/repos/pytest/_pytest/fixtures.py:509: Failed' E and: '=========================== 1 error in 0.32 seconds ============================' E and: '' E remains unmatched: '*1 passed*' /Users/jmoldow/repos/pytest/testing/python/fixture.py:265: Failed ----------------------------- Captured stdout call ----------------------------- ============================= test session starts ============================== platform darwin -- Python 3.5.0, pytest-3.0.3.dev0, py-1.4.31, pluggy-0.3.1 rootdir: /private/var/folders/_7/lh86jmls2wb_5hxdyp69sc898yf10t/T/pytest-of-jmoldow/pytest-67/testdir/test_extend_parametrized_fixture0, inifile: plugins: hypothesis-3.4.2 collected 1 items test_extend_parametrized_fixture.py E ==================================== ERRORS ==================================== _________________________ ERROR at setup of test_spam __________________________ self = > fixturedef = def _getfixturevalue(self, fixturedef): # prepare a subrequest object before calling fixture function # (latter managed by fixturedef) argname = fixturedef.argname funcitem = self._pyfuncitem scope = fixturedef.scope try: > param = funcitem.callspec.getparam(argname) E AttributeError: 'Function' object has no attribute 'callspec' /Users/jmoldow/repos/pytest/_pytest/fixtures.py:487: AttributeError During handling of the above exception, another exception occurred: self = func = . at 0x1034838c8> when = 'setup' def __init__(self, func, when): #: context of invocation: one of "setup", "call", #: "teardown", "memocollect" self.when = when self.start = time() try: > self.result = func() /Users/jmoldow/repos/pytest/_pytest/runner.py:163: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /Users/jmoldow/repos/pytest/_pytest/runner.py:151: in return CallInfo(lambda: ihook(item=item, **kwds), when=when) /Users/jmoldow/repos/pytest/_pytest/vendored_packages/pluggy.py:724: in __call__ return self._hookexec(self, self._nonwrappers + self._wrappers, kwargs) /Users/jmoldow/repos/pytest/_pytest/vendored_packages/pluggy.py:338: in _hookexec return self._inner_hookexec(hook, methods, kwargs) /Users/jmoldow/repos/pytest/_pytest/vendored_packages/pluggy.py:301: in __call__ return outcome.get_result() /Users/jmoldow/repos/pytest/_pytest/vendored_packages/pluggy.py:278: in get_result raise ex[1].with_traceback(ex[2]) /Users/jmoldow/repos/pytest/_pytest/vendored_packages/pluggy.py:264: in __init__ self.result = func() /Users/jmoldow/repos/pytest/_pytest/vendored_packages/pluggy.py:299: in outcome = _CallOutcome(lambda: self.oldcall(hook, hook_impls, kwargs)) /Users/jmoldow/repos/pytest/_pytest/vendored_packages/pluggy.py:333: in _MultiCall(methods, kwargs, hook.spec_opts).execute() /Users/jmoldow/repos/pytest/_pytest/vendored_packages/pluggy.py:595: in execute return _wrapped_call(hook_impl.function(*args), self.execute) /Users/jmoldow/repos/pytest/_pytest/vendored_packages/pluggy.py:253: in _wrapped_call return call_outcome.get_result() /Users/jmoldow/repos/pytest/_pytest/vendored_packages/pluggy.py:278: in get_result raise ex[1].with_traceback(ex[2]) /Users/jmoldow/repos/pytest/_pytest/vendored_packages/pluggy.py:264: in __init__ self.result = func() /Users/jmoldow/repos/pytest/_pytest/vendored_packages/pluggy.py:596: in execute res = hook_impl.function(*args) /Users/jmoldow/repos/pytest/_pytest/runner.py:100: in pytest_runtest_setup item.session._setupstate.prepare(item) /Users/jmoldow/repos/pytest/_pytest/runner.py:453: in prepare col.setup() /Users/jmoldow/repos/pytest/_pytest/python.py:1555: in setup fixtures.fillfixtures(self) /Users/jmoldow/repos/pytest/_pytest/fixtures.py:252: in fillfixtures request._fillfixtures() /Users/jmoldow/repos/pytest/_pytest/fixtures.py:397: in _fillfixtures item.funcargs[argname] = self.getfixturevalue(argname) /Users/jmoldow/repos/pytest/_pytest/fixtures.py:439: in getfixturevalue return self._get_active_fixturedef(argname).cached_result[0] /Users/jmoldow/repos/pytest/_pytest/fixtures.py:464: in _get_active_fixturedef result = self._getfixturevalue(fixturedef) /Users/jmoldow/repos/pytest/_pytest/fixtures.py:529: in _getfixturevalue val = fixturedef.execute(request=subrequest) /Users/jmoldow/repos/pytest/_pytest/fixtures.py:744: in execute fixturedef = request._get_active_fixturedef(argname) /Users/jmoldow/repos/pytest/_pytest/fixtures.py:464: in _get_active_fixturedef result = self._getfixturevalue(fixturedef) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = > fixturedef = def _getfixturevalue(self, fixturedef): # prepare a subrequest object before calling fixture function # (latter managed by fixturedef) argname = fixturedef.argname funcitem = self._pyfuncitem scope = fixturedef.scope try: param = funcitem.callspec.getparam(argname) except (AttributeError, ValueError): param = NOTSET param_index = 0 if fixturedef.params is not None: frame = inspect.stack()[3] frameinfo = inspect.getframeinfo(frame[0]) source_path = frameinfo.filename source_lineno = frameinfo.lineno source_path = py.path.local(source_path) if source_path.relto(funcitem.config.rootdir): source_path = source_path.relto(funcitem.config.rootdir) msg = ( "The requested fixture has no parameter defined for the " "current test.\n\nRequested fixture '{0}' defined in:\n{1}" "\n\nRequested here:\n{2}:{3}".format( fixturedef.argname, getlocation(fixturedef.func, funcitem.config.rootdir), source_path, source_lineno, ) ) > pytest.fail(msg) E Failed: The requested fixture has no parameter defined for the current test. E E Requested fixture 'foo' defined in: E conftest.py:4 E E Requested here: E /Users/jmoldow/repos/pytest/_pytest/fixtures.py:529 /Users/jmoldow/repos/pytest/_pytest/fixtures.py:509: Failed =========================== 1 error in 0.32 seconds ============================ ______ TestFillFixtures.test_extend_fixture_with_parametrized_dependency _______ self = testdir = def test_extend_fixture_with_parametrized_dependency(self, testdir): testdir.makeconftest(""" import pytest @pytest.fixture(params=[1]) def foo(request): return request.param @pytest.fixture def bar(foo): return foo """) testfile = testdir.makepyfile(""" import pytest @pytest.fixture def bar(bar): return bar * 2 def test_spam(bar): assert bar == 2 """) result = testdir.runpytest(testfile) > result.stdout.fnmatch_lines(["*1 passed*"]) E Failed: nomatch: '*1 passed*' E and: '============================= test session starts ==============================' E and: 'platform darwin -- Python 3.5.0, pytest-3.0.3.dev0, py-1.4.31, pluggy-0.3.1' E and: 'rootdir: /private/var/folders/_7/lh86jmls2wb_5hxdyp69sc898yf10t/T/pytest-of-jmoldow/pytest-67/testdir/test_extend_fixture_with_parametrized_dependency0, inifile: ' E and: 'plugins: hypothesis-3.4.2' E and: 'collected 1 items' E and: '' E and: 'test_extend_fixture_with_parametrized_dependency.py E' E and: '' E and: '==================================== ERRORS ====================================' E and: '_________________________ ERROR at setup of test_spam __________________________' E and: '' E and: "self = >" E and: "fixturedef = " E and: '' E and: ' def _getfixturevalue(self, fixturedef):' E and: ' # prepare a subrequest object before calling fixture function' E and: ' # (latter managed by fixturedef)' E and: ' argname = fixturedef.argname' E and: ' funcitem = self._pyfuncitem' E and: ' scope = fixturedef.scope' E and: ' try:' E and: '> param = funcitem.callspec.getparam(argname)' E and: "E AttributeError: 'Function' object has no attribute 'callspec'" E and: '' E and: '/Users/jmoldow/repos/pytest/_pytest/fixtures.py:487: AttributeError' E and: '' E and: 'During handling of the above exception, another exception occurred:' E and: '' E and: "self = ' E and: 'func = . at 0x103635f28>' E and: "when = 'setup'" E and: '' E and: ' def __init__(self, func, when):' E and: ' #: context of invocation: one of "setup", "call",' E and: ' #: "teardown", "memocollect"' E and: ' self.when = when' E and: ' self.start = time()' E and: ' try:' E and: '> self.result = func()' E and: '' E and: '/Users/jmoldow/repos/pytest/_pytest/runner.py:163: ' E and: '_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ' E and: '/Users/jmoldow/repos/pytest/_pytest/runner.py:151: in ' E and: ' return CallInfo(lambda: ihook(item=item, **kwds), when=when)' E and: '/Users/jmoldow/repos/pytest/_pytest/vendored_packages/pluggy.py:724: in __call__' E and: ' return self._hookexec(self, self._nonwrappers + self._wrappers, kwargs)' E and: '/Users/jmoldow/repos/pytest/_pytest/vendored_packages/pluggy.py:338: in _hookexec' E and: ' return self._inner_hookexec(hook, methods, kwargs)' E and: '/Users/jmoldow/repos/pytest/_pytest/vendored_packages/pluggy.py:301: in __call__' E and: ' return outcome.get_result()' E and: '/Users/jmoldow/repos/pytest/_pytest/vendored_packages/pluggy.py:278: in get_result' E and: ' raise ex[1].with_traceback(ex[2])' E and: '/Users/jmoldow/repos/pytest/_pytest/vendored_packages/pluggy.py:264: in __init__' E and: ' self.result = func()' E and: '/Users/jmoldow/repos/pytest/_pytest/vendored_packages/pluggy.py:299: in ' E and: ' outcome = _CallOutcome(lambda: self.oldcall(hook, hook_impls, kwargs))' E and: '/Users/jmoldow/repos/pytest/_pytest/vendored_packages/pluggy.py:333: in ' E and: ' _MultiCall(methods, kwargs, hook.spec_opts).execute()' E and: '/Users/jmoldow/repos/pytest/_pytest/vendored_packages/pluggy.py:595: in execute' E and: ' return _wrapped_call(hook_impl.function(*args), self.execute)' E and: '/Users/jmoldow/repos/pytest/_pytest/vendored_packages/pluggy.py:253: in _wrapped_call' E and: ' return call_outcome.get_result()' E and: '/Users/jmoldow/repos/pytest/_pytest/vendored_packages/pluggy.py:278: in get_result' E and: ' raise ex[1].with_traceback(ex[2])' E and: '/Users/jmoldow/repos/pytest/_pytest/vendored_packages/pluggy.py:264: in __init__' E and: ' self.result = func()' E and: '/Users/jmoldow/repos/pytest/_pytest/vendored_packages/pluggy.py:596: in execute' E and: ' res = hook_impl.function(*args)' E and: '/Users/jmoldow/repos/pytest/_pytest/runner.py:100: in pytest_runtest_setup' E and: ' item.session._setupstate.prepare(item)' E and: '/Users/jmoldow/repos/pytest/_pytest/runner.py:453: in prepare' E and: ' col.setup()' E and: '/Users/jmoldow/repos/pytest/_pytest/python.py:1555: in setup' E and: ' fixtures.fillfixtures(self)' E and: '/Users/jmoldow/repos/pytest/_pytest/fixtures.py:252: in fillfixtures' E and: ' request._fillfixtures()' E and: '/Users/jmoldow/repos/pytest/_pytest/fixtures.py:397: in _fillfixtures' E and: ' item.funcargs[argname] = self.getfixturevalue(argname)' E and: '/Users/jmoldow/repos/pytest/_pytest/fixtures.py:439: in getfixturevalue' E and: ' return self._get_active_fixturedef(argname).cached_result[0]' E and: '/Users/jmoldow/repos/pytest/_pytest/fixtures.py:464: in _get_active_fixturedef' E and: ' result = self._getfixturevalue(fixturedef)' E and: '/Users/jmoldow/repos/pytest/_pytest/fixtures.py:529: in _getfixturevalue' E and: ' val = fixturedef.execute(request=subrequest)' E and: '/Users/jmoldow/repos/pytest/_pytest/fixtures.py:744: in execute' E and: ' fixturedef = request._get_active_fixturedef(argname)' E and: '/Users/jmoldow/repos/pytest/_pytest/fixtures.py:464: in _get_active_fixturedef' E and: ' result = self._getfixturevalue(fixturedef)' E and: '/Users/jmoldow/repos/pytest/_pytest/fixtures.py:529: in _getfixturevalue' E and: ' val = fixturedef.execute(request=subrequest)' E and: '/Users/jmoldow/repos/pytest/_pytest/fixtures.py:744: in execute' E and: ' fixturedef = request._get_active_fixturedef(argname)' E and: '/Users/jmoldow/repos/pytest/_pytest/fixtures.py:464: in _get_active_fixturedef' E and: ' result = self._getfixturevalue(fixturedef)' E and: '_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ' E and: '' E and: "self = >" E and: "fixturedef = " E and: '' E and: ' def _getfixturevalue(self, fixturedef):' E and: ' # prepare a subrequest object before calling fixture function' E and: ' # (latter managed by fixturedef)' E and: ' argname = fixturedef.argname' E and: ' funcitem = self._pyfuncitem' E and: ' scope = fixturedef.scope' E and: ' try:' E and: ' param = funcitem.callspec.getparam(argname)' E and: ' except (AttributeError, ValueError):' E and: ' param = NOTSET' E and: ' param_index = 0' E and: ' if fixturedef.params is not None:' E and: ' frame = inspect.stack()[3]' E and: ' frameinfo = inspect.getframeinfo(frame[0])' E and: ' source_path = frameinfo.filename' E and: ' source_lineno = frameinfo.lineno' E and: ' source_path = py.path.local(source_path)' E and: ' if source_path.relto(funcitem.config.rootdir):' E and: ' source_path = source_path.relto(funcitem.config.rootdir)' E and: ' msg = (' E and: ' "The requested fixture has no parameter defined for the "' E and: ' "current test.\\n\\nRequested fixture \'{0}\' defined in:\\n{1}"' E and: ' "\\n\\nRequested here:\\n{2}:{3}".format(' E and: ' fixturedef.argname,' E and: ' getlocation(fixturedef.func, funcitem.config.rootdir),' E and: ' source_path,' E and: ' source_lineno,' E and: ' )' E and: ' )' E and: '> pytest.fail(msg)' E and: 'E Failed: The requested fixture has no parameter defined for the current test.' E and: 'E ' E and: "E Requested fixture 'foo' defined in:" E and: 'E conftest.py:4' E and: 'E ' E and: 'E Requested here:' E and: 'E /Users/jmoldow/repos/pytest/_pytest/fixtures.py:529' E and: '' E and: '/Users/jmoldow/repos/pytest/_pytest/fixtures.py:509: Failed' E and: '=========================== 1 error in 0.38 seconds ============================' E and: '' E remains unmatched: '*1 passed*' /Users/jmoldow/repos/pytest/testing/python/fixture.py:290: Failed ----------------------------- Captured stdout call ----------------------------- ============================= test session starts ============================== platform darwin -- Python 3.5.0, pytest-3.0.3.dev0, py-1.4.31, pluggy-0.3.1 rootdir: /private/var/folders/_7/lh86jmls2wb_5hxdyp69sc898yf10t/T/pytest-of-jmoldow/pytest-67/testdir/test_extend_fixture_with_parametrized_dependency0, inifile: plugins: hypothesis-3.4.2 collected 1 items test_extend_fixture_with_parametrized_dependency.py E ==================================== ERRORS ==================================== _________________________ ERROR at setup of test_spam __________________________ self = > fixturedef = def _getfixturevalue(self, fixturedef): # prepare a subrequest object before calling fixture function # (latter managed by fixturedef) argname = fixturedef.argname funcitem = self._pyfuncitem scope = fixturedef.scope try: > param = funcitem.callspec.getparam(argname) E AttributeError: 'Function' object has no attribute 'callspec' /Users/jmoldow/repos/pytest/_pytest/fixtures.py:487: AttributeError During handling of the above exception, another exception occurred: self = func = . at 0x103635f28> when = 'setup' def __init__(self, func, when): #: context of invocation: one of "setup", "call", #: "teardown", "memocollect" self.when = when self.start = time() try: > self.result = func() /Users/jmoldow/repos/pytest/_pytest/runner.py:163: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /Users/jmoldow/repos/pytest/_pytest/runner.py:151: in return CallInfo(lambda: ihook(item=item, **kwds), when=when) /Users/jmoldow/repos/pytest/_pytest/vendored_packages/pluggy.py:724: in __call__ return self._hookexec(self, self._nonwrappers + self._wrappers, kwargs) /Users/jmoldow/repos/pytest/_pytest/vendored_packages/pluggy.py:338: in _hookexec return self._inner_hookexec(hook, methods, kwargs) /Users/jmoldow/repos/pytest/_pytest/vendored_packages/pluggy.py:301: in __call__ return outcome.get_result() /Users/jmoldow/repos/pytest/_pytest/vendored_packages/pluggy.py:278: in get_result raise ex[1].with_traceback(ex[2]) /Users/jmoldow/repos/pytest/_pytest/vendored_packages/pluggy.py:264: in __init__ self.result = func() /Users/jmoldow/repos/pytest/_pytest/vendored_packages/pluggy.py:299: in outcome = _CallOutcome(lambda: self.oldcall(hook, hook_impls, kwargs)) /Users/jmoldow/repos/pytest/_pytest/vendored_packages/pluggy.py:333: in _MultiCall(methods, kwargs, hook.spec_opts).execute() /Users/jmoldow/repos/pytest/_pytest/vendored_packages/pluggy.py:595: in execute return _wrapped_call(hook_impl.function(*args), self.execute) /Users/jmoldow/repos/pytest/_pytest/vendored_packages/pluggy.py:253: in _wrapped_call return call_outcome.get_result() /Users/jmoldow/repos/pytest/_pytest/vendored_packages/pluggy.py:278: in get_result raise ex[1].with_traceback(ex[2]) /Users/jmoldow/repos/pytest/_pytest/vendored_packages/pluggy.py:264: in __init__ self.result = func() /Users/jmoldow/repos/pytest/_pytest/vendored_packages/pluggy.py:596: in execute res = hook_impl.function(*args) /Users/jmoldow/repos/pytest/_pytest/runner.py:100: in pytest_runtest_setup item.session._setupstate.prepare(item) /Users/jmoldow/repos/pytest/_pytest/runner.py:453: in prepare col.setup() /Users/jmoldow/repos/pytest/_pytest/python.py:1555: in setup fixtures.fillfixtures(self) /Users/jmoldow/repos/pytest/_pytest/fixtures.py:252: in fillfixtures request._fillfixtures() /Users/jmoldow/repos/pytest/_pytest/fixtures.py:397: in _fillfixtures item.funcargs[argname] = self.getfixturevalue(argname) /Users/jmoldow/repos/pytest/_pytest/fixtures.py:439: in getfixturevalue return self._get_active_fixturedef(argname).cached_result[0] /Users/jmoldow/repos/pytest/_pytest/fixtures.py:464: in _get_active_fixturedef result = self._getfixturevalue(fixturedef) /Users/jmoldow/repos/pytest/_pytest/fixtures.py:529: in _getfixturevalue val = fixturedef.execute(request=subrequest) /Users/jmoldow/repos/pytest/_pytest/fixtures.py:744: in execute fixturedef = request._get_active_fixturedef(argname) /Users/jmoldow/repos/pytest/_pytest/fixtures.py:464: in _get_active_fixturedef result = self._getfixturevalue(fixturedef) /Users/jmoldow/repos/pytest/_pytest/fixtures.py:529: in _getfixturevalue val = fixturedef.execute(request=subrequest) /Users/jmoldow/repos/pytest/_pytest/fixtures.py:744: in execute fixturedef = request._get_active_fixturedef(argname) /Users/jmoldow/repos/pytest/_pytest/fixtures.py:464: in _get_active_fixturedef result = self._getfixturevalue(fixturedef) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = > fixturedef = def _getfixturevalue(self, fixturedef): # prepare a subrequest object before calling fixture function # (latter managed by fixturedef) argname = fixturedef.argname funcitem = self._pyfuncitem scope = fixturedef.scope try: param = funcitem.callspec.getparam(argname) except (AttributeError, ValueError): param = NOTSET param_index = 0 if fixturedef.params is not None: frame = inspect.stack()[3] frameinfo = inspect.getframeinfo(frame[0]) source_path = frameinfo.filename source_lineno = frameinfo.lineno source_path = py.path.local(source_path) if source_path.relto(funcitem.config.rootdir): source_path = source_path.relto(funcitem.config.rootdir) msg = ( "The requested fixture has no parameter defined for the " "current test.\n\nRequested fixture '{0}' defined in:\n{1}" "\n\nRequested here:\n{2}:{3}".format( fixturedef.argname, getlocation(fixturedef.func, funcitem.config.rootdir), source_path, source_lineno, ) ) > pytest.fail(msg) E Failed: The requested fixture has no parameter defined for the current test. E E Requested fixture 'foo' defined in: E conftest.py:4 E E Requested here: E /Users/jmoldow/repos/pytest/_pytest/fixtures.py:529 /Users/jmoldow/repos/pytest/_pytest/fixtures.py:509: Failed =========================== 1 error in 0.38 seconds ============================ =============== 2 failed, 157 passed, 1 xfailed in 8.32 seconds ================ ERROR: InvocationError: '/Users/jmoldow/repos/pytest/.tox/py35/bin/pytest --lsof -rfsxX -- testing/python/fixture.py' ___________________________________ summary ____________________________________ ERROR: py35: commands failed