Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 940057 - dev-python/importlib-metadata-8.5.0 fails tests
Summary: dev-python/importlib-metadata-8.5.0 fails tests
Status: UNCONFIRMED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: Python Gentoo Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2024-09-22 17:22 UTC by Jonathan Lovelace
Modified: 2024-09-25 04:37 UTC (History)
2 users (show)

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


Attachments
dev-python:importlib-metadata-8.5.0:20240922-164937.log (dev-python:importlib-metadata-8.5.0:20240922-164937.log,13.03 KB, text/plain; charset=utf-8)
2024-09-22 17:22 UTC, Jonathan Lovelace
Details
emerge-info.txt (emerge-info.txt,8.65 KB, text/plain; charset=utf-8)
2024-09-22 17:23 UTC, Jonathan Lovelace
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Jonathan Lovelace 2024-09-22 17:22:50 UTC
Created attachment 903588 [details]
dev-python:importlib-metadata-8.5.0:20240922-164937.log

=dev-python/importlib-metadata-8.5.0 (and version 8.4.0, which is what my mostly-stable system tried to upgrade to) fails its test phase on this system, specifically the tests unittest.loader._FailedTest.tests.compat.test_py39_compat, unittest.loader._FailedTest.tests.test_api, unittest.loader._FailedTest.tests.test_integration, unittest.loader._FailedTest.tests.test_main, and unittest.loader._FailedTest.tests.test_zip. The output of each in the build log is similar; here's the output from tests.test_zip:

======================================================================
ERROR: tests.test_zip (unittest.loader._FailedTest.tests.test_zip)
----------------------------------------------------------------------
ImportError: Failed to import test module: tests.test_zip
Traceback (most recent call last):
  File "/usr/lib/python3.12/unittest/loader.py", line 396, in _find_test_path
    module = self._get_module_from_name(name)
             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3.12/unittest/loader.py", line 339, in _get_module_from_name
    __import__(name)
  File "/var/tmp/portage/dev-python/importlib-metadata-8.5.0/work/importlib_metadata-8.5.0/tests/test_zip.py", line 13, in <module>
    from . import fixtures
  File "/var/tmp/portage/dev-python/importlib-metadata-8.5.0/work/importlib_metadata-8.5.0/tests/fixtures.py", line 12, in <module>
    from .compat.py39 import os_helper
  File "/var/tmp/portage/dev-python/importlib-metadata-8.5.0/work/importlib_metadata-8.5.0/tests/compat/py39.py", line 3, in <module>
    os_helper = try_import('os_helper') or from_test_support(
                                           ^^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3.12/site-packages/jaraco/test/cpython.py", line 25, in from_test_support
    import test.support
ModuleNotFoundError: No module named 'test'
Comment 1 Jonathan Lovelace 2024-09-22 17:23:10 UTC
Created attachment 903589 [details]
emerge-info.txt
Comment 2 Michał Górny archtester Gentoo Infrastructure gentoo-dev Security 2024-09-24 07:16:27 UTC
What's your dev-python/jaraco-test version?
Comment 3 Jonathan Lovelace 2024-09-24 11:30:19 UTC
The possibility of an outdated jaraco-test was my first thought on reading the error, but it's version 5.4.0, the only version that's available in my current checkout of ::gentoo:

dev-python/jaraco-test-5.4.0::gentoo was built with the following:
USE="test" ABI_X86="(64)" PYTHON_TARGETS="python3_12 (-pypy3) -python3_10 -python3_11 (-python3_13)"
Comment 4 Michał Górny archtester Gentoo Infrastructure gentoo-dev Security 2024-09-24 14:04:01 UTC
Ok, your dev-python/test and dev-python/python-tests then.
Comment 5 Jonathan Lovelace 2024-09-25 02:29:35 UTC
This machine has neither dev-python/test nor dev-python/python-tests installed.
Comment 6 Michał Górny archtester Gentoo Infrastructure gentoo-dev Security 2024-09-25 04:37:53 UTC
Ah sorry, now I see we failed to revbump 5.4.0.  Please either upgrade to 5.4.0-r1, 5.5.1 or simply rebuild 5.4.0 and it should pull dev-python/test.  Or just install dev-python/test.