Created attachment 895652 [details] build.log and emerge --info ImportError while importing test module '/var/tmp/portage/app-misc/tmuxp-1.46.0/work/tmuxp-1.46.0/tests/fixtures/pluginsystem/partials/_types.py'. Hint: make sure your test modules/packages have valid Python names. Traceback: /usr/lib/python3.12/site-packages/_pytest/python.py:520: in importtestmodule mod = import_path( /usr/lib/python3.12/site-packages/_pytest/pathlib.py:584: in import_path importlib.import_module(module_name) /usr/lib/python3.12/importlib/__init__.py:90: in import_module return _bootstrap._gcd_import(name[level:], package, level) <frozen importlib._bootstrap>:1387: in _gcd_import ??? <frozen importlib._bootstrap>:1360: in _find_and_load ??? <frozen importlib._bootstrap>:1331: in _find_and_load_unlocked ??? <frozen importlib._bootstrap>:935: in _load_unlocked ??? <frozen importlib._bootstrap_external>:995: in exec_module ??? <frozen importlib._bootstrap>:488: in _call_with_frames_removed ??? tests/fixtures/pluginsystem/partials/_types.py:15: in <module> from typing_extensions import NotRequired, TypedDict E ModuleNotFoundError: No module named 'typing_extensions'
The bug has been closed via the following commit(s): https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=3421377cd7fad6be0e10f838a365010b9a02cc3c commit 3421377cd7fad6be0e10f838a365010b9a02cc3c Author: Eli Schwartz <eschwartz@gentoo.org> AuthorDate: 2024-08-11 20:51:16 +0000 Commit: Eli Schwartz <eschwartz@gentoo.org> CommitDate: 2024-08-11 22:11:29 +0000 app-misc/tmuxp: fix broken test dependency on typing-extensions It is needed for all versions of python, not simply arbitrarily 3.10. Although it actually should not be needed -- the issue is that pytest automatically tries to import all files in tests/ and scan them for testcases. Even a file that exists solely to be used by mypy and has no tests, still gets imported for collection purposes. Instead, just make the fixtures be ignored by the collector. Now typing-extensions isn't needed at all. Closes: https://bugs.gentoo.org/934083 Signed-off-by: Eli Schwartz <eschwartz@gentoo.org> app-misc/tmuxp/tmuxp-1.27.0.ebuild | 7 ++++++- app-misc/tmuxp/tmuxp-1.43.0.ebuild | 6 +++++- app-misc/tmuxp/tmuxp-1.45.0.ebuild | 6 +++++- app-misc/tmuxp/tmuxp-1.46.0.ebuild | 6 +++++- 4 files changed, 21 insertions(+), 4 deletions(-)