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
sk@note:~ $ python3 --version
Python 3.7.3
sk@note:~ $ python3 -m venv --system-site-packages venv/pytest-bug
sk@note:~ $ . ~/venv/pytest-bug/bin/activate
(pytest-bug) sk@note:~ $ pip install -U pytest
Collecting pytest
...
Successfully installed importlib-metadata-0.17 pluggy-0.12.0 pytest-4.6.2 zipp-0.5.1
(pytest-bug) sk@note:~ $ which pytest
/home/sk/venv/pytest-bug/bin/pytest
(pytest-bug) sk@note:~ $ pytest --version
Traceback (most recent call last):
File "/home/sk/venv/pytest-bug/bin/pytest", line 10, in <module>
sys.exit(main())
File "/home/sk/venv/pytest-bug/lib/python3.7/site-packages/_pytest/config/__init__.py", line 63, in main
config = _prepareconfig(args, plugins)
File "/home/sk/venv/pytest-bug/lib/python3.7/site-packages/_pytest/config/__init__.py", line 207, in _prepareconfig
pluginmanager=pluginmanager, args=args
File "/home/sk/venv/pytest-bug/lib/python3.7/site-packages/pluggy/hooks.py", line 289, in __call__
return self._hookexec(self, self.get_hookimpls(), kwargs)
File "/home/sk/venv/pytest-bug/lib/python3.7/site-packages/pluggy/manager.py", line 87, in _hookexec
return self._inner_hookexec(hook, methods, kwargs)
File "/home/sk/venv/pytest-bug/lib/python3.7/site-packages/pluggy/manager.py", line 81, in <lambda>
firstresult=hook.spec.opts.get("firstresult") if hook.spec else False,
File "/home/sk/venv/pytest-bug/lib/python3.7/site-packages/pluggy/callers.py", line 203, in _multicall
gen.send(outcome)
File "/home/sk/venv/pytest-bug/lib/python3.7/site-packages/_pytest/helpconfig.py", line 94, in pytest_cmdline_parse
config = outcome.get_result()
File "/home/sk/venv/pytest-bug/lib/python3.7/site-packages/pluggy/callers.py", line 80, in get_result
raise ex[1].with_traceback(ex[2])
File "/home/sk/venv/pytest-bug/lib/python3.7/site-packages/pluggy/callers.py", line 187, in _multicall
res = hook_impl.function(*args)
File "/home/sk/venv/pytest-bug/lib/python3.7/site-packages/_pytest/config/__init__.py", line 687, in pytest_cmdline_parse
self.parse(args)
File "/home/sk/venv/pytest-bug/lib/python3.7/site-packages/_pytest/config/__init__.py", line 895, in parse
self._preparse(args, addopts=addopts)
File "/home/sk/venv/pytest-bug/lib/python3.7/site-packages/_pytest/config/__init__.py", line 836, in _preparse
self._consider_importhook(args)
File "/home/sk/venv/pytest-bug/lib/python3.7/site-packages/_pytest/config/__init__.py", line 784, in _consider_importhook
self._mark_plugins_for_rewrite(hook)
File "/home/sk/venv/pytest-bug/lib/python3.7/site-packages/_pytest/config/__init__.py", line 806, in _mark_plugins_for_rewrite
for name in _iter_rewritable_modules(package_files):
File "/home/sk/venv/pytest-bug/lib/python3.7/site-packages/_pytest/config/__init__.py", line 625, in _iter_rewritable_modules
for fn in package_files:
File "/home/sk/venv/pytest-bug/lib/python3.7/site-packages/_pytest/config/__init__.py", line 803, in <genexpr>
for file in dist.files
TypeError: 'NoneType' object is not iterable
It seems, that this was broken since v4.6.0. Version 4.5.0 does work:
(pytest-bug) sk@note:~ $ pip install -U pytest==4.5.0
...
Successfully installed pytest-4.5.0
(pytest-bug) $ pytest --version
This is pytest version 4.5.0, imported from /home/sk/venv/pytest-bug/lib/python3.7/site-packages/pytest.py
setuptools registered plugins:
pytest-cov-2.6.0 at /usr/lib/python3/dist-packages/pytest_cov/plugin.py
OS version:
sk@note:~ $ lsb_release -a
No LSB modules are available.
Distributor ID: Debian
Description: Debian GNU/Linux 10 (buster)
Release: 10
Codename: buster
Steps to reproduce:
It seems, that this was broken since v4.6.0. Version 4.5.0 does work:
OS version:
pip list:
The text was updated successfully, but these errors were encountered: