+ /usr/bin/python2 -m pytest -m 'not network' -k '...' ============================= test session starts ============================== platform linux2 -- Python 2.7.16, pytest-4.3.0, py-1.7.0, pluggy-0.9.0 rootdir: /builddir/build/BUILD/pip-19.0.3, inifile: setup.cfg INTERNALERROR> Traceback (most recent call last): INTERNALERROR> File "/usr/lib/python2.7/site-packages/_pytest/main.py", line 210, in wrap_session INTERNALERROR> session.exitstatus = doit(config, session) or 0 INTERNALERROR> File "/usr/lib/python2.7/site-packages/_pytest/main.py", line 249, in _main INTERNALERROR> config.hook.pytest_collection(session=session) INTERNALERROR> File "/usr/lib/python2.7/site-packages/pluggy/hooks.py", line 289, in __call__ INTERNALERROR> return self._hookexec(self, self.get_hookimpls(), kwargs) INTERNALERROR> File "/usr/lib/python2.7/site-packages/pluggy/manager.py", line 68, in _hookexec INTERNALERROR> return self._inner_hookexec(hook, methods, kwargs) INTERNALERROR> File "/usr/lib/python2.7/site-packages/pluggy/manager.py", line 62, in <lambda> INTERNALERROR> firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, INTERNALERROR> File "/usr/lib/python2.7/site-packages/pluggy/callers.py", line 208, in _multicall INTERNALERROR> return outcome.get_result() INTERNALERROR> File "/usr/lib/python2.7/site-packages/pluggy/callers.py", line 81, in get_result INTERNALERROR> _reraise(*ex) # noqa INTERNALERROR> File "/usr/lib/python2.7/site-packages/pluggy/callers.py", line 187, in _multicall INTERNALERROR> res = hook_impl.function(*args) INTERNALERROR> File "/usr/lib/python2.7/site-packages/_pytest/main.py", line 259, in pytest_collection INTERNALERROR> return session.perform_collect() INTERNALERROR> File "/usr/lib/python2.7/site-packages/_pytest/main.py", line 489, in perform_collect INTERNALERROR> session=self, config=self.config, items=items INTERNALERROR> File "/usr/lib/python2.7/site-packages/pluggy/hooks.py", line 289, in __call__ INTERNALERROR> return self._hookexec(self, self.get_hookimpls(), kwargs) INTERNALERROR> File "/usr/lib/python2.7/site-packages/pluggy/manager.py", line 68, in _hookexec INTERNALERROR> return self._inner_hookexec(hook, methods, kwargs) INTERNALERROR> File "/usr/lib/python2.7/site-packages/pluggy/manager.py", line 62, in <lambda> INTERNALERROR> firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, INTERNALERROR> File "/usr/lib/python2.7/site-packages/pluggy/callers.py", line 208, in _multicall INTERNALERROR> return outcome.get_result() INTERNALERROR> File "/usr/lib/python2.7/site-packages/pluggy/callers.py", line 81, in get_result INTERNALERROR> _reraise(*ex) # noqa INTERNALERROR> File "/usr/lib/python2.7/site-packages/pluggy/callers.py", line 187, in _multicall INTERNALERROR> res = hook_impl.function(*args) INTERNALERROR> File "/builddir/build/BUILD/pip-19.0.3/tests/conftest.py", line 35, in pytest_collection_modifyitems INTERNALERROR> if item.get_marker('network') is not None and "CI" in os.environ: INTERNALERROR> AttributeError: 'Function' object has no attribute 'get_marker' ========================= no tests ran in 4.14 seconds =========================
Removed in https://github.com/pytest-dev/pytest/pull/4564
https://src.fedoraproject.org/rpms/python-pip/pull-request/29
Fixed in git.