Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

py.test 2 under Python 3 throws error #71

Closed
wolever opened this issue Mar 15, 2019 · 0 comments
Closed

py.test 2 under Python 3 throws error #71

wolever opened this issue Mar 15, 2019 · 0 comments

Comments

@wolever
Copy link
Owner

wolever commented Mar 15, 2019

$ tox -e py37-pytest2
GLOB sdist-make: /Users/wolever/code/parameterized/setup.py
py37-pytest2 inst-nodeps: /Users/wolever/code/parameterized/.tox/dist/parameterized-0.7.0.zip
py37-pytest2 installed: mock==2.0.0,nose==1.3.7,parameterized==0.7.0,pbr==5.1.3,py==1.8.0,pytest==2.9.2,six==1.12.0
py37-pytest2 run-test-pre: PYTHONHASHSEED='2473274294'
py37-pytest2 runtests: commands[0] | py.test parameterized/test.py
======================================================================== test session starts =========================================================================
platform darwin -- Python 3.7.2, pytest-2.9.2, py-1.8.0, pluggy-0.3.1
rootdir: /Users/wolever/code/parameterized, inifile:
collected 0 items / 1 errors

=============================================================================== ERRORS ===============================================================================
_______________________________________________________________ ERROR collecting parameterized/test.py _______________________________________________________________
.tox/py37-pytest2/lib/python3.7/site-packages/_pytest/runner.py:150: in __init__
    self.result = func()
.tox/py37-pytest2/lib/python3.7/site-packages/_pytest/main.py:435: in _memocollect
    return self._memoizedcall('_collected', lambda: list(self.collect()))
.tox/py37-pytest2/lib/python3.7/site-packages/_pytest/main.py:315: in _memoizedcall
    res = function()
.tox/py37-pytest2/lib/python3.7/site-packages/_pytest/main.py:435: in <lambda>
    return self._memoizedcall('_collected', lambda: list(self.collect()))
.tox/py37-pytest2/lib/python3.7/site-packages/_pytest/python.py:605: in collect
    return super(Module, self).collect()
.tox/py37-pytest2/lib/python3.7/site-packages/_pytest/python.py:459: in collect
    res = self.makeitem(name, obj)
.tox/py37-pytest2/lib/python3.7/site-packages/_pytest/python.py:471: in makeitem
    collector=self, name=name, obj=obj)
.tox/py37-pytest2/lib/python3.7/site-packages/_pytest/vendored_packages/pluggy.py:724: in __call__
    return self._hookexec(self, self._nonwrappers + self._wrappers, kwargs)
.tox/py37-pytest2/lib/python3.7/site-packages/_pytest/vendored_packages/pluggy.py:338: in _hookexec
    return self._inner_hookexec(hook, methods, kwargs)
.tox/py37-pytest2/lib/python3.7/site-packages/_pytest/vendored_packages/pluggy.py:333: in <lambda>
    _MultiCall(methods, kwargs, hook.spec_opts).execute()
.tox/py37-pytest2/lib/python3.7/site-packages/_pytest/vendored_packages/pluggy.py:595: in execute
    return _wrapped_call(hook_impl.function(*args), self.execute)
.tox/py37-pytest2/lib/python3.7/site-packages/_pytest/vendored_packages/pluggy.py:249: in _wrapped_call
    wrap_controller.send(call_outcome)
E   RuntimeError: generator raised StopIteration
====================================================================== 1 error in 0.41 seconds =======================================================================
ERROR: InvocationError for command '/Users/wolever/code/parameterized/.tox/py37-pytest2/bin/py.test parameterized/test.py' (exited with code 1)
______________________________________________________________________________ summary _______________________________________________________________________________
ERROR:   py37-pytest2: commands failed
@wolever wolever closed this as completed Apr 12, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant