Skip to content

Fix error that occurs when using pytest=3.7 #22

@drdavella

Description

@drdavella
../../miniconda3/envs/env/lib/python3.6/site-packages/pluggy/hooks.py:258: in __call__
    return self._hookexec(self, self._nonwrappers + self._wrappers, kwargs)
../../miniconda3/envs/env/lib/python3.6/site-packages/pluggy/manager.py:67: in _hookexec
    return self._inner_hookexec(hook, methods, kwargs)
../../miniconda3/envs/env/lib/python3.6/site-packages/pluggy/manager.py:61: in <lambda>
    firstresult=hook.spec_opts.get('firstresult'),
../../miniconda3/envs/env/lib/python3.6/site-packages/_pytest/python.py:210: in pytest_collect_file
    return ihook.pytest_pycollect_makemodule(path=path, parent=parent)
../../miniconda3/envs/env/lib/python3.6/site-packages/pluggy/hooks.py:258: in __call__
    return self._hookexec(self, self._nonwrappers + self._wrappers, kwargs)
../../miniconda3/envs/env/lib/python3.6/site-packages/pluggy/manager.py:67: in _hookexec
    return self._inner_hookexec(hook, methods, kwargs)
../../miniconda3/envs/env/lib/python3.6/site-packages/pluggy/manager.py:61: in <lambda>
    firstresult=hook.spec_opts.get('firstresult'),
../../miniconda3/envs/env/lib/python3.6/site-packages/_pytest/python.py:215: in pytest_pycollect_makemodule
    return Package(path, parent)
../../miniconda3/envs/env/lib/python3.6/site-packages/_pytest/python.py:552: in __init__
    self, fspath, parent=parent, config=config, session=session, nodeid=nodeid
../../miniconda3/envs/env/lib/python3.6/site-packages/_pytest/nodes.py:371: in __init__
    name, parent, config, session, nodeid=nodeid, fspath=fspath
../../miniconda3/envs/env/lib/python3.6/site-packages/_pytest/python.py:275: in __init__
    super(PyobjMixin, self).__init__(*k, **kw)
../../miniconda3/envs/env/lib/python3.6/site-packages/_pytest/nodes.py:93: in __init__
    self.keywords = NodeKeywords(self)
E   RecursionError: maximum recursion depth exceeded

We first encountered a different problem when pytest-3.7.0 was released, and that was reported upstream (see pytest-dev/pytest#3742). They released a patch in 3.7.1, but that is what is causing this issue (see pytest-dev/pytest#3751).

The recommended solution for the time being is to use pytest==3.6.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions