Skip to content

Errors when running tests, when installing from AUR #124

@aiden1999

Description

@aiden1999

Hello, I'm getting two errors and a warning when running the tests while installing python-manimpango from the AUR, and so I'm unable to update from 0.6.0 to 0.6.1:

===================================================================== test session starts =====================================================================
platform linux -- Python 3.14.2, pytest-8.4.2, pluggy-1.6.0
benchmark: 4.0.0 (defaults: timer=time.perf_counter disable_gc=False min_rounds=5 min_time=0.000005 max_time=1.0 calibration_precision=10 warmup=False warmup_iterations=100000)
ManimPango version 0.6.1
Pango version 1.57.0
Cairo version 1.18.4
rootdir: /home/aiden/.cache/yay/python-manimpango/src/manimpango-0.6.1
configfile: setup.cfg
testpaths: tests
plugins: anyio-4.12.1, inline-snapshot-0.31.1, asyncio-1.3.0, hypothesis-6.150.0, cov-6.1.1, examples-0.0.18, benchmark-4.0.0, xdist-3.8.0, flaky-3.8.1, typeguard-4.4.4
asyncio: mode=Mode.STRICT, debug=False, asyncio_default_fixture_loop_scope=None, asyncio_default_test_loop_scope=function
collected 20 items / 2 errors                                                                                                                                 

=========================================================================== ERRORS ============================================================================
____________________________________________________________ ERROR collecting tests/test_fonts.py _____________________________________________________________
tests/test_fonts.py:41: in <module>
    font_lists_dict = font_list()
                      ^^^^^^^^^^^
tests/test_fonts.py:36: in font_list
    with register_font(i) as f:
         ^^^^^^^^^^^^^^^^
/usr/lib/python3.14/contextlib.py:141: in __enter__
    return next(self.gen)
           ^^^^^^^^^^^^^^
tests/test_fonts.py:24: in register_font
    yield list(set(final) - set(init))[0]
          ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
E   IndexError: list index out of range
__________________________________________________________ ERROR collecting tests/test_list_fonts.py __________________________________________________________
tests/test_list_fonts.py:8: in <module>
    from .test_fonts import font_lists_dict as font_lists
<frozen importlib._bootstrap>:1371: in _find_and_load
    ???
<frozen importlib._bootstrap>:1342: in _find_and_load_unlocked
    ???
<frozen importlib._bootstrap>:938: in _load_unlocked
    ???
/usr/lib/python3.14/site-packages/_pytest/assertion/rewrite.py:186: in exec_module
    exec(co, module.__dict__)
tests/test_fonts.py:41: in <module>
    font_lists_dict = font_list()
                      ^^^^^^^^^^^
tests/test_fonts.py:36: in font_list
    with register_font(i) as f:
         ^^^^^^^^^^^^^^^^
/usr/lib/python3.14/contextlib.py:141: in __enter__
    return next(self.gen)
           ^^^^^^^^^^^^^^
tests/test_fonts.py:24: in register_font
    yield list(set(final) - set(init))[0]
          ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
E   IndexError: list index out of range
====================================================================== warnings summary =======================================================================
../../../../../../../usr/lib/python3.14/site-packages/coverage/control.py:632
  /usr/lib/python3.14/site-packages/coverage/control.py:632: CoverageWarning: Plugin file tracers (Cython.Coverage.Plugin) aren't supported with SysMonitor
    self._warn(

-- Docs: https://docs.pytest.org/en/stable/how-to/capture-warnings.html
=================================================================== short test summary info ===================================================================
ERROR tests/test_fonts.py - IndexError: list index out of range
ERROR tests/test_list_fonts.py - IndexError: list index out of range
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! Interrupted: 2 errors during collection !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
================================================================ 1 warning, 2 errors in 1.20s =================================================================

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions