Bug 2481248 - python-autopage fails to build in Fedora Rawhide: AssertionError in InvokePagerTest.test_exception and more
Summary: python-autopage fails to build in Fedora Rawhide: AssertionError in InvokePag...
Keywords:
Status: POST
Alias: None
Product: Fedora
Classification: Fedora
Component: python-autopage
Version: rawhide
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Zane Bitter
QA Contact:
URL:
Whiteboard:
Depends On:
Blocks: PYTHON3.15 F45FTBFS, RAWHIDEFTBFS
TreeView+ depends on / blocked
 
Reported: 2026-05-25 19:08 UTC by Karolina Surma
Modified: 2026-05-25 21:36 UTC (History)
3 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed:
Type: Bug
Embargoed:


Attachments (Terms of Use)

Description Karolina Surma 2026-05-25 19:08:43 UTC
python-autopage fails to build in Fedora Rawhide.

There is 8 test failures with very similar symptoms:


________________________ InvokePagerTest.test_exception ________________________

self = <autopage.tests.test_end_to_end.InvokePagerTest testMethod=test_exception>

    def test_exception(self) -> None:
        num_lines = 50
        with isolation.isolate(with_exception) as env:
            pager = isolation.PagerControl(env)
    
            lines = num_lines
            while lines > 0:
                expected = min(lines, MAX_LINES_PER_PAGE)
>               self.assertEqual(expected, pager.advance())
E               AssertionError: 23 != 50

autopage/tests/test_end_to_end.py:226: AssertionError
----------------------------- Captured stderr call -----------------------------
Raw output: ['0\n', '1\n', '2\n', '3\n', '4\n', '5\n', '6\n', '7\n', '8\n', '9\n', '10\n', '11\n', '12\n', '13\n', '14\n', '15\n', '16\n', '17\n', '18\n', '19\n', '20\n', '21\n', '22\n', '23\n', '24\n', '25\n', '26\n', '27\n', '28\n', '29\n', '30\n', '31\n', '32\n', '33\n', '34\n', '35\n', '36\n', '37\n', '38\n', '39\n', '40\n', '41\n', '42\n', '43\n', '44\n', '45\n', '46\n', '47\n', '48\n', '49\n']
Recorded output: ['0\n', '1\n', '2\n', '3\n', '4\n', '5\n', '6\n', '7\n', '8\n', '9\n', '10\n', '11\n', '12\n', '13\n', '14\n', '15\n', '16\n', '17\n', '18\n', '19\n', '20\n', '21\n', '22\n', '23\n', '24\n', '25\n', '26\n', '27\n', '28\n', '29\n', '30\n', '31\n', '32\n', '33\n', '34\n', '35\n', '36\n', '37\n', '38\n', '39\n', '40\n', '41\n', '42\n', '43\n', '44\n', '45\n', '46\n', '47\n', '48\n', '49\n']

How to reproduce:
fedpkg mockbuild

Comment 2 Zane Bitter 2026-05-25 21:36:11 UTC
Thanks Karolina, adding a build dependency on less makes sense; merged.


Note You need to log in before you can comment on or make changes to this bug.