Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(test): pytest changed pytest_ignore_collect
Without this change, the test collection fails in spectacular ways. See end of commit for long log. From https://pytest.org/en/7.4.x/changelog.html#pytest-7-4-0-2023-06-23 > #11081: The norecursedirs check is now performed in a pytest_ignore_collect implementation, so plugins can affect it. > > If after updating to this version you see that your norecursedirs setting is not being respected, it means that a conftest or a plugin you use has a bad pytest_ignore_collect implementation. Most likely, your hook returns False for paths it does not want to ignore, which ends the processing and doesn’t allow other plugins, including pytest itself, to ignore the path. The fix is to return None instead of False for paths your hook doesn’t want to ignore. Failure: ``` ============================= test session starts ============================== platform linux -- Python 3.8.17, pytest-7.4.0, pluggy-1.2.0 cachedir: .tox/py/.pytest_cache rootdir: /home/runner/work/edx-cookiecutters/edx-cookiecutters configfile: tox.ini plugins: cookies-0.7.0 collected 1441 items / 22 errors ==================================== ERRORS ==================================== _ ERROR collecting .tox/py/lib/python3.8/site-packages/dill/tests/test_diff.py _ .tox/py/lib/python3.8/site-packages/_pytest/runner.py:341: in from_call result: Optional[TResult] = func() .tox/py/lib/python3.8/site-packages/_pytest/runner.py:372: in <lambda> call = CallInfo.from_call(lambda: list(collector.collect()), "collect") .tox/py/lib/python3.8/site-packages/_pytest/python.py:531: in collect self._inject_setup_module_fixture() .tox/py/lib/python3.8/site-packages/_pytest/python.py:545: in _inject_setup_module_fixture self.obj, ("setUpModule", "setup_module") .tox/py/lib/python3.8/site-packages/_pytest/python.py:310: in obj self._obj = obj = self._getobj() .tox/py/lib/python3.8/site-packages/_pytest/python.py:528: in _getobj return self._importtestmodule() .tox/py/lib/python3.8/site-packages/_pytest/python.py:617: in _importtestmodule mod = import_path(self.path, mode=importmode, root=self.config.rootpath) .tox/py/lib/python3.8/site-packages/_pytest/pathlib.py:565: in import_path importlib.import_module(module_name) /opt/hostedtoolcache/Python/3.8.17/x64/lib/python3.8/importlib/__init__.py:127: in import_module return _bootstrap._gcd_import(name[level:], package, level) <frozen importlib._bootstrap>:1014: in _gcd_import ??? <frozen importlib._bootstrap>:991: in _find_and_load ??? <frozen importlib._bootstrap>:975: in _find_and_load_unlocked ??? <frozen importlib._bootstrap>:671: in _load_unlocked ??? .tox/py/lib/python3.8/site-packages/_pytest/assertion/rewrite.py:178: in exec_module exec(co, module.__dict__) .tox/py/lib/python3.8/site-packages/dill/tests/test_diff.py:9: in <module> from dill import __diff as diff .tox/py/lib/python3.8/site-packages/dill/__diff.py:233: in <module> memorise(mod) .tox/py/lib/python3.8/site-packages/dill/__diff.py:111: in memorise [mem(value) for key, value in g.items()] .tox/py/lib/python3.8/site-packages/dill/__diff.py:111: in <listcomp> [mem(value) for key, value in g.items()] .tox/py/lib/python3.8/site-packages/dill/__diff.py:119: in memorise [mem(item) for item in s] .tox/py/lib/python3.8/site-packages/dill/__diff.py:119: in <listcomp> [mem(item) for item in s] .tox/py/lib/python3.8/site-packages/dill/__diff.py:111: in memorise [mem(value) for key, value in g.items()] .tox/py/lib/python3.8/site-packages/dill/__diff.py:111: in <listcomp> [mem(value) for key, value in g.items()] .tox/py/lib/python3.8/site-packages/dill/__diff.py:111: in memorise [mem(value) for key, value in g.items()] .tox/py/lib/python3.8/site-packages/dill/__diff.py:111: in <listcomp> [mem(value) for key, value in g.items()] .tox/py/lib/python3.8/site-packages/dill/__diff.py:111: in memorise [mem(value) for key, value in g.items()] .tox/py/lib/python3.8/site-packages/dill/__diff.py:111: in <listcomp> [mem(value) for key, value in g.items()] .tox/py/lib/python3.8/site-packages/dill/__diff.py:115: in memorise [(mem(key), mem(item)) .tox/py/lib/python3.8/site-packages/dill/__diff.py:115: in <listcomp> [(mem(key), mem(item)) .tox/py/lib/python3.8/site-packages/dill/__diff.py:111: in memorise [mem(value) for key, value in g.items()] .tox/py/lib/python3.8/site-packages/dill/__diff.py:111: in <listcomp> [mem(value) for key, value in g.items()] .tox/py/lib/python3.8/site-packages/dill/__diff.py:111: in memorise [mem(value) for key, value in g.items()] .tox/py/lib/python3.8/site-packages/dill/__diff.py:111: in <listcomp> [mem(value) for key, value in g.items()] .tox/py/lib/python3.8/site-packages/dill/__diff.py:111: in memorise [mem(value) for key, value in g.items()] .tox/py/lib/python3.8/site-packages/dill/__diff.py:111: in <listcomp> [mem(value) for key, value in g.items()] .tox/py/lib/python3.8/site-packages/dill/__diff.py:111: in memorise [mem(value) for key, value in g.items()] .tox/py/lib/python3.8/site-packages/dill/__diff.py:111: in <listcomp> [mem(value) for key, value in g.items()] .tox/py/lib/python3.8/site-packages/dill/__diff.py:111: in memorise [mem(value) for key, value in g.items()] .tox/py/lib/python3.8/site-packages/dill/__diff.py:111: in <listcomp> [mem(value) for key, value in g.items()] .tox/py/lib/python3.8/site-packages/dill/__diff.py:101: in memorise seq_id = dict((id_(key),id_(value)) for key, value in s.items()) .tox/py/lib/python3.8/site-packages/dill/__diff.py:101: in <genexpr> seq_id = dict((id_(key),id_(value)) for key, value in s.items()) E ValueError: too many values to unpack (expected 2) _ ERROR collecting .tox/py/lib/python3.8/site-packages/dill/tests/test_module.py _ ImportError while importing test module '/home/runner/work/edx-cookiecutters/edx-cookiecutters/.tox/py/lib/python3.8/site-packages/dill/tests/test_module.py'. Hint: make sure your test modules/packages have valid Python names. Traceback: /opt/hostedtoolcache/Python/3.8.17/x64/lib/python3.8/importlib/__init__.py:127: in import_module return _bootstrap._gcd_import(name[level:], package, level) .tox/py/lib/python3.8/site-packages/dill/tests/test_module.py:11: in <module> import test_mixins as module .tox/py/lib/python3.8/site-packages/dill/__diff.py:220: in _imp mod = __import__(*args, **kwds) E ModuleNotFoundError: No module named 'test_mixins' _ ERROR collecting .tox/py/lib/python3.8/site-packages/dill/tests/test_objects.py _ .tox/py/lib/python3.8/site-packages/_pytest/runner.py:341: in from_call result: Optional[TResult] = func() .tox/py/lib/python3.8/site-packages/_pytest/runner.py:372: in <lambda> call = CallInfo.from_call(lambda: list(collector.collect()), "collect") .tox/py/lib/python3.8/site-packages/_pytest/python.py:531: in collect self._inject_setup_module_fixture() .tox/py/lib/python3.8/site-packages/_pytest/python.py:545: in _inject_setup_module_fixture self.obj, ("setUpModule", "setup_module") .tox/py/lib/python3.8/site-packages/_pytest/python.py:310: in obj self._obj = obj = self._getobj() .tox/py/lib/python3.8/site-packages/_pytest/python.py:528: in _getobj return self._importtestmodule() .tox/py/lib/python3.8/site-packages/_pytest/python.py:617: in _importtestmodule mod = import_path(self.path, mode=importmode, root=self.config.rootpath) .tox/py/lib/python3.8/site-packages/_pytest/pathlib.py:565: in import_path importlib.import_module(module_name) /opt/hostedtoolcache/Python/3.8.17/x64/lib/python3.8/importlib/__init__.py:127: in import_module return _bootstrap._gcd_import(name[level:], package, level) <frozen importlib._bootstrap>:1014: in _gcd_import ??? <frozen importlib._bootstrap>:991: in _find_and_load ??? <frozen importlib._bootstrap>:975: in _find_and_load_unlocked ??? <frozen importlib._bootstrap>:671: in _load_unlocked ??? .tox/py/lib/python3.8/site-packages/_pytest/assertion/rewrite.py:178: in exec_module exec(co, module.__dict__) .tox/py/lib/python3.8/site-packages/dill/tests/test_objects.py:20: in <module> load_types(pickleable=True,unpickleable=False) .tox/py/lib/python3.8/site-packages/dill/__init__.py:71: in load_types from . import _objects .tox/py/lib/python3.8/site-packages/dill/__diff.py:223: in _imp memorise(sys.modules[m]) .tox/py/lib/python3.8/site-packages/dill/__diff.py:111: in memorise [mem(value) for key, value in g.items()] .tox/py/lib/python3.8/site-packages/dill/__diff.py:111: in <listcomp> [mem(value) for key, value in g.items()] .tox/py/lib/python3.8/site-packages/dill/__diff.py:115: in memorise [(mem(key), mem(item)) .tox/py/lib/python3.8/site-packages/dill/__diff.py:115: in <listcomp> [(mem(key), mem(item)) .tox/py/lib/python3.8/site-packages/dill/__diff.py:91: in memorise g = get_attrs(obj) .tox/py/lib/python3.8/site-packages/dill/__diff.py:44: in get_attrs return getattr(obj, '__dict__', None) E ReferenceError: weakly-referenced object no longer exists _ ERROR collecting .tox/py/lib/python3.8/site-packages/dill/tests/test_registered.py _ .tox/py/lib/python3.8/site-packages/_pytest/runner.py:341: in from_call result: Optional[TResult] = func() .tox/py/lib/python3.8/site-packages/_pytest/runner.py:372: in <lambda> call = CallInfo.from_call(lambda: list(collector.collect()), "collect") .tox/py/lib/python3.8/site-packages/_pytest/python.py:531: in collect self._inject_setup_module_fixture() .tox/py/lib/python3.8/site-packages/_pytest/python.py:545: in _inject_setup_module_fixture self.obj, ("setUpModule", "setup_module") .tox/py/lib/python3.8/site-packages/_pytest/python.py:310: in obj self._obj = obj = self._getobj() .tox/py/lib/python3.8/site-packages/_pytest/python.py:528: in _getobj return self._importtestmodule() .tox/py/lib/python3.8/site-packages/_pytest/python.py:617: in _importtestmodule mod = import_path(self.path, mode=importmode, root=self.config.rootpath) .tox/py/lib/python3.8/site-packages/_pytest/pathlib.py:565: in import_path importlib.import_module(module_name) /opt/hostedtoolcache/Python/3.8.17/x64/lib/python3.8/importlib/__init__.py:127: in import_module return _bootstrap._gcd_import(name[level:], package, level) <frozen importlib._bootstrap>:1014: in _gcd_import ??? <frozen importlib._bootstrap>:991: in _find_and_load ??? <frozen importlib._bootstrap>:975: in _find_and_load_unlocked ??? <frozen importlib._bootstrap>:671: in _load_unlocked ??? .tox/py/lib/python3.8/site-packages/_pytest/assertion/rewrite.py:178: in exec_module exec(co, module.__dict__) .tox/py/lib/python3.8/site-packages/dill/tests/test_registered.py:45: in <module> raise e from None .tox/py/lib/python3.8/site-packages/dill/tests/test_registered.py:42: in <module> assert not bool(success) E AssertionError: assert not True E + where True = bool(['PrettyPrinterType', 'StreamHandlerType']) ------------------------------- Captured stdout -------------------------------- SUCCESS: ['PrettyPrinterType', 'StreamHandlerType'] _ ERROR collecting .tox/py/lib/python3.8/site-packages/dill/tests/test_selected.py _ .tox/py/lib/python3.8/site-packages/_pytest/runner.py:341: in from_call result: Optional[TResult] = func() .tox/py/lib/python3.8/site-packages/_pytest/runner.py:372: in <lambda> call = CallInfo.from_call(lambda: list(collector.collect()), "collect") .tox/py/lib/python3.8/site-packages/_pytest/python.py:531: in collect self._inject_setup_module_fixture() .tox/py/lib/python3.8/site-packages/_pytest/python.py:545: in _inject_setup_module_fixture self.obj, ("setUpModule", "setup_module") .tox/py/lib/python3.8/site-packages/_pytest/python.py:310: in obj self._obj = obj = self._getobj() .tox/py/lib/python3.8/site-packages/_pytest/python.py:528: in _getobj return self._importtestmodule() .tox/py/lib/python3.8/site-packages/_pytest/python.py:617: in _importtestmodule mod = import_path(self.path, mode=importmode, root=self.config.rootpath) .tox/py/lib/python3.8/site-packages/_pytest/pathlib.py:565: in import_path importlib.import_module(module_name) /opt/hostedtoolcache/Python/3.8.17/x64/lib/python3.8/importlib/__init__.py:127: in import_module return _bootstrap._gcd_import(name[level:], package, level) <frozen importlib._bootstrap>:1014: in _gcd_import ??? <frozen importlib._bootstrap>:991: in _find_and_load ??? <frozen importlib._bootstrap>:975: in _find_and_load_unlocked ??? <frozen importlib._bootstrap>:671: in _load_unlocked ??? .tox/py/lib/python3.8/site-packages/_pytest/assertion/rewrite.py:178: in exec_module exec(co, module.__dict__) .tox/py/lib/python3.8/site-packages/dill/tests/test_selected.py:46: in <module> objects['TemporaryFileType'].close() E OSError: [Errno 9] Bad file descriptor _ ERROR collecting .tox/py/lib/python3.8/site-packages/dill/tests/test_session.py _ ImportError while importing test module '/home/runner/work/edx-cookiecutters/edx-cookiecutters/.tox/py/lib/python3.8/site-packages/dill/tests/test_session.py'. Hint: make sure your test modules/packages have valid Python names. Traceback: /opt/hostedtoolcache/Python/3.8.17/x64/lib/python3.8/importlib/__init__.py:127: in import_module return _bootstrap._gcd_import(name[level:], package, level) .tox/py/lib/python3.8/site-packages/dill/tests/test_session.py:72: in <module> import test_dictviews as local_mod # non-builtin top-level module .tox/py/lib/python3.8/site-packages/dill/__diff.py:220: in _imp mod = __import__(*args, **kwds) E ModuleNotFoundError: No module named 'test_dictviews' _ ERROR collecting .tox/py/lib/python3.8/site-packages/jeepney/io/tests/test_asyncio.py _ ImportError while importing test module '/home/runner/work/edx-cookiecutters/edx-cookiecutters/.tox/py/lib/python3.8/site-packages/jeepney/io/tests/test_asyncio.py'. Hint: make sure your test modules/packages have valid Python names. Traceback: /opt/hostedtoolcache/Python/3.8.17/x64/lib/python3.8/importlib/__init__.py:127: in import_module return _bootstrap._gcd_import(name[level:], package, level) .tox/py/lib/python3.8/site-packages/jeepney/io/tests/test_asyncio.py:3: in <module> import async_timeout .tox/py/lib/python3.8/site-packages/dill/__diff.py:220: in _imp mod = __import__(*args, **kwds) E ModuleNotFoundError: No module named 'async_timeout' _ ERROR collecting .tox/py/lib/python3.8/site-packages/jeepney/io/tests/test_trio.py _ ImportError while importing test module '/home/runner/work/edx-cookiecutters/edx-cookiecutters/.tox/py/lib/python3.8/site-packages/jeepney/io/tests/test_trio.py'. Hint: make sure your test modules/packages have valid Python names. Traceback: /opt/hostedtoolcache/Python/3.8.17/x64/lib/python3.8/importlib/__init__.py:127: in import_module return _bootstrap._gcd_import(name[level:], package, level) .tox/py/lib/python3.8/site-packages/jeepney/io/tests/test_trio.py:1: in <module> import trio .tox/py/lib/python3.8/site-packages/dill/__diff.py:220: in _imp mod = __import__(*args, **kwds) E ModuleNotFoundError: No module named 'trio' _ ERROR collecting .tox/py/lib/python3.8/site-packages/jeepney/tests/test_bus.py _ ImportError while importing test module '/home/runner/work/edx-cookiecutters/edx-cookiecutters/.tox/py/lib/python3.8/site-packages/jeepney/tests/test_bus.py'. Hint: make sure your test modules/packages have valid Python names. Traceback: /opt/hostedtoolcache/Python/3.8.17/x64/lib/python3.8/importlib/__init__.py:127: in import_module return _bootstrap._gcd_import(name[level:], package, level) .tox/py/lib/python3.8/site-packages/jeepney/tests/test_bus.py:2: in <module> from testpath import modified_env .tox/py/lib/python3.8/site-packages/dill/__diff.py:220: in _imp mod = __import__(*args, **kwds) E ModuleNotFoundError: No module named 'testpath' _ ERROR collecting .tox/py/lib/python3.8/site-packages/pbr/tests/test_commands.py _ ImportError while importing test module '/home/runner/work/edx-cookiecutters/edx-cookiecutters/.tox/py/lib/python3.8/site-packages/pbr/tests/test_commands.py'. Hint: make sure your test modules/packages have valid Python names. Traceback: /opt/hostedtoolcache/Python/3.8.17/x64/lib/python3.8/importlib/__init__.py:127: in import_module return _bootstrap._gcd_import(name[level:], package, level) .tox/py/lib/python3.8/site-packages/pbr/tests/__init__.py:16: in <module> import testscenarios .tox/py/lib/python3.8/site-packages/dill/__diff.py:220: in _imp mod = __import__(*args, **kwds) E ModuleNotFoundError: No module named 'testscenarios' _ ERROR collecting .tox/py/lib/python3.8/site-packages/pbr/tests/test_core.py __ ImportError while importing test module '/home/runner/work/edx-cookiecutters/edx-cookiecutters/.tox/py/lib/python3.8/site-packages/pbr/tests/test_core.py'. Hint: make sure your test modules/packages have valid Python names. Traceback: /opt/hostedtoolcache/Python/3.8.17/x64/lib/python3.8/importlib/__init__.py:127: in import_module return _bootstrap._gcd_import(name[level:], package, level) .tox/py/lib/python3.8/site-packages/pbr/tests/__init__.py:16: in <module> import testscenarios .tox/py/lib/python3.8/site-packages/dill/__diff.py:220: in _imp mod = __import__(*args, **kwds) E ModuleNotFoundError: No module named 'testscenarios' _ ERROR collecting .tox/py/lib/python3.8/site-packages/pbr/tests/test_files.py _ ImportError while importing test module '/home/runner/work/edx-cookiecutters/edx-cookiecutters/.tox/py/lib/python3.8/site-packages/pbr/tests/test_files.py'. Hint: make sure your test modules/packages have valid Python names. Traceback: /opt/hostedtoolcache/Python/3.8.17/x64/lib/python3.8/importlib/__init__.py:127: in import_module return _bootstrap._gcd_import(name[level:], package, level) .tox/py/lib/python3.8/site-packages/pbr/tests/__init__.py:16: in <module> import testscenarios .tox/py/lib/python3.8/site-packages/dill/__diff.py:220: in _imp mod = __import__(*args, **kwds) E ModuleNotFoundError: No module named 'testscenarios' _ ERROR collecting .tox/py/lib/python3.8/site-packages/pbr/tests/test_hooks.py _ ImportError while importing test module '/home/runner/work/edx-cookiecutters/edx-cookiecutters/.tox/py/lib/python3.8/site-packages/pbr/tests/test_hooks.py'. Hint: make sure your test modules/packages have valid Python names. Traceback: /opt/hostedtoolcache/Python/3.8.17/x64/lib/python3.8/importlib/__init__.py:127: in import_module return _bootstrap._gcd_import(name[level:], package, level) .tox/py/lib/python3.8/site-packages/pbr/tests/__init__.py:16: in <module> import testscenarios .tox/py/lib/python3.8/site-packages/dill/__diff.py:220: in _imp mod = __import__(*args, **kwds) E ModuleNotFoundError: No module named 'testscenarios' _ ERROR collecting .tox/py/lib/python3.8/site-packages/pbr/tests/test_integration.py _ ImportError while importing test module '/home/runner/work/edx-cookiecutters/edx-cookiecutters/.tox/py/lib/python3.8/site-packages/pbr/tests/test_integration.py'. Hint: make sure your test modules/packages have valid Python names. Traceback: /opt/hostedtoolcache/Python/3.8.17/x64/lib/python3.8/importlib/__init__.py:127: in import_module return _bootstrap._gcd_import(name[level:], package, level) .tox/py/lib/python3.8/site-packages/pbr/tests/__init__.py:16: in <module> import testscenarios .tox/py/lib/python3.8/site-packages/dill/__diff.py:220: in _imp mod = __import__(*args, **kwds) E ModuleNotFoundError: No module named 'testscenarios' _ ERROR collecting .tox/py/lib/python3.8/site-packages/pbr/tests/test_packaging.py _ ImportError while importing test module '/home/runner/work/edx-cookiecutters/edx-cookiecutters/.tox/py/lib/python3.8/site-packages/pbr/tests/test_packaging.py'. Hint: make sure your test modules/packages have valid Python names. Traceback: /opt/hostedtoolcache/Python/3.8.17/x64/lib/python3.8/importlib/__init__.py:127: in import_module return _bootstrap._gcd_import(name[level:], package, level) .tox/py/lib/python3.8/site-packages/pbr/tests/__init__.py:16: in <module> import testscenarios .tox/py/lib/python3.8/site-packages/dill/__diff.py:220: in _imp mod = __import__(*args, **kwds) E ModuleNotFoundError: No module named 'testscenarios' _ ERROR collecting .tox/py/lib/python3.8/site-packages/pbr/tests/test_pbr_json.py _ ImportError while importing test module '/home/runner/work/edx-cookiecutters/edx-cookiecutters/.tox/py/lib/python3.8/site-packages/pbr/tests/test_pbr_json.py'. Hint: make sure your test modules/packages have valid Python names. Traceback: /opt/hostedtoolcache/Python/3.8.17/x64/lib/python3.8/importlib/__init__.py:127: in import_module return _bootstrap._gcd_import(name[level:], package, level) .tox/py/lib/python3.8/site-packages/pbr/tests/__init__.py:16: in <module> import testscenarios .tox/py/lib/python3.8/site-packages/dill/__diff.py:220: in _imp mod = __import__(*args, **kwds) E ModuleNotFoundError: No module named 'testscenarios' _ ERROR collecting .tox/py/lib/python3.8/site-packages/pbr/tests/test_setup.py _ ImportError while importing test module '/home/runner/work/edx-cookiecutters/edx-cookiecutters/.tox/py/lib/python3.8/site-packages/pbr/tests/test_setup.py'. Hint: make sure your test modules/packages have valid Python names. Traceback: /opt/hostedtoolcache/Python/3.8.17/x64/lib/python3.8/importlib/__init__.py:127: in import_module return _bootstrap._gcd_import(name[level:], package, level) .tox/py/lib/python3.8/site-packages/pbr/tests/__init__.py:16: in <module> import testscenarios .tox/py/lib/python3.8/site-packages/dill/__diff.py:220: in _imp mod = __import__(*args, **kwds) E ModuleNotFoundError: No module named 'testscenarios' _ ERROR collecting .tox/py/lib/python3.8/site-packages/pbr/tests/test_util.py __ ImportError while importing test module '/home/runner/work/edx-cookiecutters/edx-cookiecutters/.tox/py/lib/python3.8/site-packages/pbr/tests/test_util.py'. Hint: make sure your test modules/packages have valid Python names. Traceback: /opt/hostedtoolcache/Python/3.8.17/x64/lib/python3.8/importlib/__init__.py:127: in import_module return _bootstrap._gcd_import(name[level:], package, level) .tox/py/lib/python3.8/site-packages/pbr/tests/__init__.py:16: in <module> import testscenarios .tox/py/lib/python3.8/site-packages/dill/__diff.py:220: in _imp mod = __import__(*args, **kwds) E ModuleNotFoundError: No module named 'testscenarios' _ ERROR collecting .tox/py/lib/python3.8/site-packages/pbr/tests/test_version.py _ ImportError while importing test module '/home/runner/work/edx-cookiecutters/edx-cookiecutters/.tox/py/lib/python3.8/site-packages/pbr/tests/test_version.py'. Hint: make sure your test modules/packages have valid Python names. Traceback: /opt/hostedtoolcache/Python/3.8.17/x64/lib/python3.8/importlib/__init__.py:127: in import_module return _bootstrap._gcd_import(name[level:], package, level) .tox/py/lib/python3.8/site-packages/pbr/tests/__init__.py:16: in <module> import testscenarios .tox/py/lib/python3.8/site-packages/dill/__diff.py:220: in _imp mod = __import__(*args, **kwds) E ModuleNotFoundError: No module named 'testscenarios' _ ERROR collecting .tox/py/lib/python3.8/site-packages/pbr/tests/test_wsgi.py __ ImportError while importing test module '/home/runner/work/edx-cookiecutters/edx-cookiecutters/.tox/py/lib/python3.8/site-packages/pbr/tests/test_wsgi.py'. Hint: make sure your test modules/packages have valid Python names. Traceback: /opt/hostedtoolcache/Python/3.8.17/x64/lib/python3.8/importlib/__init__.py:127: in import_module return _bootstrap._gcd_import(name[level:], package, level) .tox/py/lib/python3.8/site-packages/pbr/tests/__init__.py:16: in <module> import testscenarios .tox/py/lib/python3.8/site-packages/dill/__diff.py:220: in _imp mod = __import__(*args, **kwds) E ModuleNotFoundError: No module named 'testscenarios' _ ERROR collecting .tox/py/lib/python3.8/site-packages/pylint/testutils/configuration_test.py _ .tox/py/lib/python3.8/site-packages/_pytest/runner.py:341: in from_call result: Optional[TResult] = func() .tox/py/lib/python3.8/site-packages/_pytest/runner.py:372: in <lambda> call = CallInfo.from_call(lambda: list(collector.collect()), "collect") .tox/py/lib/python3.8/site-packages/_pytest/python.py:531: in collect self._inject_setup_module_fixture() .tox/py/lib/python3.8/site-packages/_pytest/python.py:545: in _inject_setup_module_fixture self.obj, ("setUpModule", "setup_module") .tox/py/lib/python3.8/site-packages/_pytest/python.py:310: in obj self._obj = obj = self._getobj() .tox/py/lib/python3.8/site-packages/_pytest/python.py:528: in _getobj return self._importtestmodule() .tox/py/lib/python3.8/site-packages/_pytest/python.py:617: in _importtestmodule mod = import_path(self.path, mode=importmode, root=self.config.rootpath) .tox/py/lib/python3.8/site-packages/_pytest/pathlib.py:565: in import_path importlib.import_module(module_name) /opt/hostedtoolcache/Python/3.8.17/x64/lib/python3.8/importlib/__init__.py:127: in import_module return _bootstrap._gcd_import(name[level:], package, level) <frozen importlib._bootstrap>:1014: in _gcd_import ??? <frozen importlib._bootstrap>:991: in _find_and_load ??? <frozen importlib._bootstrap>:961: in _find_and_load_unlocked ??? <frozen importlib._bootstrap>:219: in _call_with_frames_removed ??? <frozen importlib._bootstrap>:1014: in _gcd_import ??? <frozen importlib._bootstrap>:991: in _find_and_load ??? <frozen importlib._bootstrap>:975: in _find_and_load_unlocked ??? <frozen importlib._bootstrap>:671: in _load_unlocked ??? <frozen importlib._bootstrap_external>:843: in exec_module ??? <frozen importlib._bootstrap>:219: in _call_with_frames_removed ??? .tox/py/lib/python3.8/site-packages/pylint/testutils/__init__.py:24: in <module> from pylint.testutils.checker_test_case import CheckerTestCase .tox/py/lib/python3.8/site-packages/dill/__diff.py:220: in _imp mod = __import__(*args, **kwds) .tox/py/lib/python3.8/site-packages/pylint/testutils/checker_test_case.py:15: in <module> from pylint.testutils.global_test_linter import linter .tox/py/lib/python3.8/site-packages/dill/__diff.py:220: in _imp mod = __import__(*args, **kwds) .tox/py/lib/python3.8/site-packages/pylint/testutils/global_test_linter.py:6: in <module> from pylint.lint import PyLinter .tox/py/lib/python3.8/site-packages/dill/__diff.py:220: in _imp mod = __import__(*args, **kwds) .tox/py/lib/python3.8/site-packages/pylint/lint/__init__.py:22: in <module> from pylint.lint.parallel import check_parallel .tox/py/lib/python3.8/site-packages/dill/__diff.py:223: in _imp memorise(sys.modules[m]) .tox/py/lib/python3.8/site-packages/dill/__diff.py:111: in memorise [mem(value) for key, value in g.items()] .tox/py/lib/python3.8/site-packages/dill/__diff.py:111: in <listcomp> [mem(value) for key, value in g.items()] .tox/py/lib/python3.8/site-packages/dill/__diff.py:111: in memorise [mem(value) for key, value in g.items()] .tox/py/lib/python3.8/site-packages/dill/__diff.py:111: in <listcomp> [mem(value) for key, value in g.items()] .tox/py/lib/python3.8/site-packages/dill/__diff.py:115: in memorise [(mem(key), mem(item)) .tox/py/lib/python3.8/site-packages/dill/__diff.py:115: in <listcomp> [(mem(key), mem(item)) .tox/py/lib/python3.8/site-packages/dill/__diff.py:91: in memorise g = get_attrs(obj) .tox/py/lib/python3.8/site-packages/dill/__diff.py:44: in get_attrs return getattr(obj, '__dict__', None) E ReferenceError: weakly-referenced object no longer exists _ ERROR collecting .tox/py/lib/python3.8/site-packages/stevedore/tests/test_callback.py _ ImportError while importing test module '/home/runner/work/edx-cookiecutters/edx-cookiecutters/.tox/py/lib/python3.8/site-packages/stevedore/tests/test_callback.py'. Hint: make sure your test modules/packages have valid Python names. Traceback: /opt/hostedtoolcache/Python/3.8.17/x64/lib/python3.8/importlib/__init__.py:127: in import_module return _bootstrap._gcd_import(name[level:], package, level) .tox/py/lib/python3.8/site-packages/stevedore/tests/test_callback.py:17: in <module> from testtools.matchers import GreaterThan .tox/py/lib/python3.8/site-packages/dill/__diff.py:220: in _imp mod = __import__(*args, **kwds) E ModuleNotFoundError: No module named 'testtools' =========================== short test summary info ============================ ERROR .tox/py/lib/python3.8/site-packages/dill/tests/test_diff.py - ValueErro... ERROR .tox/py/lib/python3.8/site-packages/dill/tests/test_module.py ERROR .tox/py/lib/python3.8/site-packages/dill/tests/test_objects.py - Refere... ERROR .tox/py/lib/python3.8/site-packages/dill/tests/test_registered.py - Ass... ERROR .tox/py/lib/python3.8/site-packages/dill/tests/test_selected.py - OSErr... ERROR .tox/py/lib/python3.8/site-packages/dill/tests/test_session.py ERROR .tox/py/lib/python3.8/site-packages/jeepney/io/tests/test_asyncio.py ERROR .tox/py/lib/python3.8/site-packages/jeepney/io/tests/test_trio.py ERROR .tox/py/lib/python3.8/site-packages/jeepney/tests/test_bus.py ERROR .tox/py/lib/python3.8/site-packages/pbr/tests/test_commands.py ERROR .tox/py/lib/python3.8/site-packages/pbr/tests/test_core.py ERROR .tox/py/lib/python3.8/site-packages/pbr/tests/test_files.py ERROR .tox/py/lib/python3.8/site-packages/pbr/tests/test_hooks.py ERROR .tox/py/lib/python3.8/site-packages/pbr/tests/test_integration.py ERROR .tox/py/lib/python3.8/site-packages/pbr/tests/test_packaging.py ERROR .tox/py/lib/python3.8/site-packages/pbr/tests/test_pbr_json.py ERROR .tox/py/lib/python3.8/site-packages/pbr/tests/test_setup.py ERROR .tox/py/lib/python3.8/site-packages/pbr/tests/test_util.py ERROR .tox/py/lib/python3.8/site-packages/pbr/tests/test_version.py ERROR .tox/py/lib/python3.8/site-packages/pbr/tests/test_wsgi.py ERROR .tox/py/lib/python3.8/site-packages/pylint/testutils/configuration_test.py ERROR .tox/py/lib/python3.8/site-packages/stevedore/tests/test_callback.py !!!!!!!!!!!!!!!!!!! Interrupted: 22 errors during collection !!!!!!!!!!!!!!!!!!! ============================= 22 errors in 15.69s ============================== ```
- Loading branch information