Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 909027

Summary: dev-python/scikit-build-core-0.4.6 fails tests
Product: Gentoo Linux Reporter: Agostino Sarubbo <ago>
Component: Current packagesAssignee: Python Gentoo Team <python>
Status: RESOLVED OBSOLETE    
Severity: normal CC: mgorny
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
See Also: https://github.com/scikit-build/scikit-build-core/issues/405
Whiteboard:
Package list:
Runtime testing required: ---
Attachments: build.log

Description Agostino Sarubbo gentoo-dev 2023-06-23 09:20:32 UTC
https://blogs.gentoo.org/ago/2020/07/04/gentoo-tinderbox/

Issue: dev-python/scikit-build-core-0.4.6 fails tests.
Discovered on: amd64 (internal ref: ci)
Comment 1 Agostino Sarubbo gentoo-dev 2023-06-23 09:20:34 UTC
Created attachment 864441 [details]
build.log

build log and emerge --info
Comment 2 Agostino Sarubbo gentoo-dev 2023-06-23 09:20:35 UTC
Error(s) that match a know pattern:


E       AssertionError: assert 'hello world' == 'hello world'
FAILED tests/test_logging.py::test_rich_print_forcecolor - AssertionError: as...
SKIPPED [1] tests/test_fortran.py:17: could not import 'numpy': No module named 'numpy'
SKIPPED [1] tests/test_program_search.py:17: could not import 'cmake': No module named 'cmake'
SKIPPED [1] tests/test_program_search.py:26: could not import 'ninja': No module named 'ninja'
tests/test_program_search.py::test_get_cmake_programs_cmake_module SKIPPED (could not import 'cmake': No module named 'cmake') [ 58/120]
tests/test_program_search.py::test_get_ninja_programs_cmake_module SKIPPED (could not import 'ninja': No module named 'ninja') [ 59/120]
Comment 3 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2023-06-23 09:21:00 UTC
Sigh, colours...


capsys = <_pytest.capture.CaptureFixture object at 0x7f81ac0a5480>
monkeypatch = <_pytest.monkeypatch.MonkeyPatch object at 0x7f81ac0a6020>

    def test_rich_print_forcecolor(capsys, monkeypatch):
        monkeypatch.setenv("FORCE_COLOR", "1")
        rich_print("[red bold]hello[/bold] world", end="")
>       assert capsys.readouterr().out == "\33[91m\33[1mhello\33[22m world\33[0m"
E       AssertionError: assert 'hello world' == '\x1b[91m\x1b[1mhello\x1b[22m world\x1b[0m'
E         - hello world
E         + hello world

capsys     = <_pytest.capture.CaptureFixture object at 0x7f81ac0a5480>
monkeypatch = <_pytest.monkeypatch.MonkeyPatch object at 0x7f81ac0a6020>