ManimCommunity / ManimCommunity/ManimPango

Errors when running tests, when installing from AUR

Open
#124 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Python
Stars
62
Forks
22
PR merge metrics
No merged PRs in 30d

Description

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 =================================================================

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start with tests/test_fonts.py, especially register_font and font_list, then inspect how tests/test_list_fonts.py imports the collected font data. Reproduce the collection errors in the Python 3.14 AUR environment with pytest. Done means both test files collect without the IndexError and the reported test run can proceed.

Written by the indexing model from the issue text.

Assessment

Tech stack
python
Domain
testing
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
42/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.