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 am not sure if this is a pytest or importlib_metadata bug, but I get the following exception running pytest (in any directory):
Traceback (most recent call last):
File "/home/user/.local/bin/pytest", line 11, in <module>
sys.exit(main())
File "/home/user/.local/lib/python3.6/site-packages/_pytest/config/__init__.py", line 63, in main
config = _prepareconfig(args, plugins)
File "/home/user/.local/lib/python3.6/site-packages/_pytest/config/__init__.py", line 207, in _prepareconfig
pluginmanager=pluginmanager, args=args
File "/home/user/.local/lib/python3.6/site-packages/pluggy/hooks.py", line 289, in __call__
return self._hookexec(self, self.get_hookimpls(), kwargs)
File "/home/user/.local/lib/python3.6/site-packages/pluggy/manager.py", line 87, in _hookexec
return self._inner_hookexec(hook, methods, kwargs)
File "/home/user/.local/lib/python3.6/site-packages/pluggy/manager.py", line 81, in <lambda>
firstresult=hook.spec.opts.get("firstresult") if hook.spec else False,
File "/home/user/.local/lib/python3.6/site-packages/pluggy/callers.py", line 203, in _multicall
gen.send(outcome)
File "/home/user/.local/lib/python3.6/site-packages/_pytest/helpconfig.py", line 94, in pytest_cmdline_parse
config = outcome.get_result()
File "/home/user/.local/lib/python3.6/site-packages/pluggy/callers.py", line 80, in get_result
raise ex[1].with_traceback(ex[2])
File "/home/user/.local/lib/python3.6/site-packages/pluggy/callers.py", line 187, in _multicall
res = hook_impl.function(*args)
File "/home/user/.local/lib/python3.6/site-packages/_pytest/config/__init__.py", line 687, in pytest_cmdline_parse
self.parse(args)
File "/home/user/.local/lib/python3.6/site-packages/_pytest/config/__init__.py", line 895, in parse
self._preparse(args, addopts=addopts)
File "/home/user/.local/lib/python3.6/site-packages/_pytest/config/__init__.py", line 836, in _preparse
self._consider_importhook(args)
File "/home/user/.local/lib/python3.6/site-packages/_pytest/config/__init__.py", line 784, in _consider_importhook
self._mark_plugins_for_rewrite(hook)
File "/home/user/.local/lib/python3.6/site-packages/_pytest/config/__init__.py", line 806, in _mark_plugins_for_rewrite
for name in _iter_rewritable_modules(package_files):
File "/home/user/.local/lib/python3.6/site-packages/_pytest/config/__init__.py", line 625, in _iter_rewritable_modules
for fn in package_files:
File "/home/user/.local/lib/python3.6/site-packages/_pytest/config/__init__.py", line 803, in <genexpr>
for file in dist.files
TypeError: 'NoneType' object is not iterable
This can be circumvented by importlib_metadata returning a empty list instead of None. But maybe pytest also wants to add a bug workaround?
I am not sure if this is a pytest or importlib_metadata bug, but I get the following exception running pytest (in any directory):
This can be circumvented by importlib_metadata returning a empty list instead of None. But maybe pytest also wants to add a bug workaround?
pip list says:
The text was updated successfully, but these errors were encountered: