Package: python3-pytest
Version: 4.6.11-1
Severity: grave

I was trying to update another package in the Debian Python Team, and
couldn't understand why its testsuite failed with the above error.

After some failed poking around, I put the following in a file named
test_foo.py:

def test_foo():
    pass

and ran 'pytest-3 test_foo.py' : same error. So I think the problem is
with python3-pytest and not with the original package.

I'm setting the severity to grave since it makes the package unusable.

Cheers,

JP

PS: the full trace is:
Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/_pytest/config/__init__.py",
line 572, in import_plugin
    __import__(importspec)
ModuleNotFoundError: No module named 'pytest_tornasync'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/bin/pytest-3", line 11, in <module>
    load_entry_point('pytest==4.6.11', 'console_scripts', 'pytest')()
  File "/usr/lib/python3/dist-packages/_pytest/config/__init__.py",
line 65, in main
    config = _prepareconfig(args, plugins)
  File "/usr/lib/python3/dist-packages/_pytest/config/__init__.py",
line 213, in _prepareconfig
    return pluginmanager.hook.pytest_cmdline_parse(
  File "/usr/lib/python3/dist-packages/pluggy/hooks.py", line 286, in
__call__
    return self._hookexec(self, self.get_hookimpls(), kwargs)
  File "/usr/lib/python3/dist-packages/pluggy/manager.py", line 92, in
_hookexec
    return self._inner_hookexec(hook, methods, kwargs)
  File "/usr/lib/python3/dist-packages/pluggy/manager.py", line 83, in
<lambda>
    self._inner_hookexec = lambda hook, methods, kwargs:
hook.multicall(
  File "/usr/lib/python3/dist-packages/pluggy/callers.py", line 203, in
_multicall
    gen.send(outcome)
  File "/usr/lib/python3/dist-packages/_pytest/helpconfig.py", line 94,
in pytest_cmdline_parse
    config = outcome.get_result()
  File "/usr/lib/python3/dist-packages/pluggy/callers.py", line 80, in
get_result
    raise ex[1].with_traceback(ex[2])
  File "/usr/lib/python3/dist-packages/pluggy/callers.py", line 187, in
_multicall
    res = hook_impl.function(*args)
  File "/usr/lib/python3/dist-packages/_pytest/config/__init__.py",
line 789, in pytest_cmdline_parse
    self.parse(args)
  File "/usr/lib/python3/dist-packages/_pytest/config/__init__.py",
line 997, in parse
    self._preparse(args, addopts=addopts)
  File "/usr/lib/python3/dist-packages/_pytest/config/__init__.py",
line 943, in _preparse
    self.pluginmanager.load_setuptools_entrypoints("pytest11")
  File "/usr/lib/python3/dist-packages/pluggy/manager.py", line 298, in
load_setuptools_entrypoints
    self.register(plugin, name=ep.name)
  File "/usr/lib/python3/dist-packages/_pytest/config/__init__.py",
line 335, in register
    self.consider_module(plugin)
  File "/usr/lib/python3/dist-packages/_pytest/config/__init__.py",
line 540, in consider_module
    self._import_plugin_specs(getattr(mod, "pytest_plugins", []))
  File "/usr/lib/python3/dist-packages/_pytest/config/__init__.py",
line 545, in _import_plugin_specs
    self.import_plugin(import_spec)
  File "/usr/lib/python3/dist-packages/_pytest/config/__init__.py",
line 581, in import_plugin
    six.reraise(ImportError, new_exc, tb)
  File "/usr/lib/python3/dist-packages/six.py", line 702, in reraise
    raise value.with_traceback(tb)
  File "/usr/lib/python3/dist-packages/_pytest/config/__init__.py",
line 572, in import_plugin
    __import__(importspec)
ImportError: Error importing plugin "pytest_tornasync": No module named
'pytest_tornasync'

Reply via email to