You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have a conftest.py with a parametrized fixture in a test subdir (see a minimal example attached) with one of the params declared as pytest.mark.xfail(). This puppy worked with pytest == 3.2.3 but after the pytest update to 3.2.4 (3.2.5 also affected) I get:
/tmp/pytest-rtpproxy/lib/python2.7/site-packages/py/_path/common.py:372: in visit
for x in Visitor(fil, rec, ignore, bf, sort).gen(self):
/tmp/pytest-rtpproxy/lib/python2.7/site-packages/py/_path/common.py:411: in gen
if p.check(dir=1) and (rec is None or rec(p))])
/tmp/pytest-rtpproxy/lib/python2.7/site-packages/_pytest/main.py:737: in _recurse
ihook = self.gethookproxy(path)
/tmp/pytest-rtpproxy/lib/python2.7/site-packages/_pytest/main.py:641: in gethookproxy
my_conftestmodules = pm._getconftestmodules(fspath)
/tmp/pytest-rtpproxy/lib/python2.7/site-packages/_pytest/config.py:356: in _getconftestmodules
mod = self._importconftest(conftestpath)
/tmp/pytest-rtpproxy/lib/python2.7/site-packages/_pytest/config.py:381: in _importconftest
raise ConftestImportFailure(conftestpath, sys.exc_info())
E ConftestImportFailure: ValueError('need more than 1 value to unpack',)
E File "/tmp/pytest-rtpproxy/lib/python2.7/site-packages/_pytest/assertion/rewrite.py", line 212, in load_module
E py.builtin.exec_(co, mod.__dict__)
E File "/tmp/pytest-rtpproxy/lib/python2.7/site-packages/py/_builtin.py", line 221, in exec_
E exec2(obj, globals, locals)
E File "<string>", line 7, in exec2
E File "/home/porta-one/repos/rtpproxy/test/ft/ft1_dummy/conftest.py", line 3, in <module>
E @pytest.fixture(params = ['OK', pytest.mark.xfail('FAIL')])
E File "/tmp/pytest-rtpproxy/lib/python2.7/site-packages/_pytest/mark.py", line 264, in __getattr__
E self._check(name)
E File "/tmp/pytest-rtpproxy/lib/python2.7/site-packages/_pytest/mark.py", line 275, in _check
E marker, _ = line.split(":", 1)
Please note that no exception is raised if I move conftest.py to the test root dir.
I have a conftest.py with a parametrized fixture in a test subdir (see a minimal example attached) with one of the params declared as pytest.mark.xfail(). This puppy worked with pytest == 3.2.3 but after the pytest update to 3.2.4 (3.2.5 also affected) I get:
Please note that no exception is raised if I move conftest.py to the test root dir.
To setup the virtualenv and start the tests I do:
Minimal example attached: ft.zip
Virtualenv package list attached: virtualenv.txt
The virtualenv is deployed with:
OS: Red Hat Enterprise Linux Server release 7.4 (Maipo)
edit by @nicoddemus: formatting
The text was updated successfully, but these errors were encountered: