Bug 16484

Summary: AB-INT PTEST: python3-wcwidth error in qemux86-64-musl
Product: [QA/Testing] Package Testing (ptest) Reporter: João Marcos Costa <joaomarcos.costa>
Component: ptestAssignee: Unassigned <unassigned>
Status: NEW --- QA Contact:
Severity: normal    
Priority: Undecided CC: mathieu.dubois-briand, richard.purdie
Version: unspecified   
Target Milestone: ---   
Hardware: x86   
OS: Multiple   
Whiteboard:
OS type for building Yocto: --- Type of Regression: ---
Verified: Documentation change: Don't know

Description João Marcos Costa 2026-11-03 10:55:12 UTC
https://autobuilder.yoctoproject.org/valkyrie/#/builders/110/builds/1507/steps/15/logs/stdio

"""
'ERROR: '
'tests/test_width.py:test_width_virama_conjunct_survives_control_codes[\\u1039\\x0bA-2-vertical_tab]\n'
'\n'
'@pytest.fixture(autouse=True)\n'
'    def _verify_extension_mode():\n'
'        """\n'
'        Assert the loaded implementation matches the '
'WCWIDTH_PYTHON env var.\n'
'    \n'
'        In extension mode the C extension must be active; '
'in Python mode it must not be, so a silently-\n'
'        failed C build is caught in CI.\n'
'        """\n'
'        # local\n'
'        import wcwidth\n'
'    \n'
"        if os.environ.get('WCWIDTH_PYTHON', ''):\n"
'            assert not wcwidth.HAS_C_EXTENSION, "C '
'extension loaded in Python mode"\n'
'        else:\n'
'>           assert wcwidth.HAS_C_EXTENSION, "C extension '
'not loaded in extension mode"\n'
'E           AssertionError: C extension not loaded in '
'extension mode\n'
'E           assert False\n'
"E            +  where False = <module 'wcwidth' from "
"'/usr/lib/python3.15/site-packages/wcwidth/__init__.py'>.HAS_C_EXTENSION\n"
'\n'
'tests/conftest.py:27: AssertionError\n'
"""

This same AssertionError is raised over and over.

Full logs at: https://valkyrie.yocto.io/pub/non-release/20261103-45/testresults/qemux86-64-musl-ptest/python3-wcwidth.log
Comment 1 Mathieu Dubois-Briand 2026-11-03 12:37:04 UTC
I suspect this is something in my branch, I'm on it.