Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 934083 - app-misc/tmuxp-1.46.0 fails tests: ModuleNotFoundError: No module named 'typing_extensions'
Summary: app-misc/tmuxp-1.46.0 fails tests: ModuleNotFoundError: No module named 'typi...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: Patrick McLean
URL:
Whiteboard:
Keywords: TESTFAILURE
Depends on:
Blocks: 932923
  Show dependency tree
 
Reported: 2024-06-12 04:09 UTC by matoro
Modified: 2024-08-11 22:13 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
build.log and emerge --info (build.log,17.38 KB, text/x-log)
2024-06-12 04:09 UTC, matoro
Details

Note You need to log in before you can comment on or make changes to this bug.
Description matoro archtester 2024-06-12 04:09:09 UTC
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'
Comment 1 Larry the Git Cow gentoo-dev 2024-08-11 22:13:01 UTC
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(-)