Bug 2423880 - python-pdir2 fails to build with Python 3.15: AssertionError in test_pdir_module
Summary: python-pdir2 fails to build with Python 3.15: AssertionError in test_pdir_module
Keywords:
Status: CLOSED WONTFIX
Alias: None
Product: Fedora
Classification: Fedora
Component: python-pdir2
Version: rawhide
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Orphan Owner
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks: PYTHON3.15
TreeView+ depends on / blocked
 
Reported: 2025-12-19 14:47 UTC by Karolina Surma
Modified: 2026-03-23 18:56 UTC (History)
4 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2026-03-23 18:56:30 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)

Description Karolina Surma 2025-12-19 14:47:56 UTC
python-pdir2 fails to build with Python 3.15.0a3.

_______________________________ test_pdir_module _______________________________

fake_tty = None

    def test_pdir_module(fake_tty):
        import pdir
        import m
    
        result = pdir(m)
        expected = '\n'.join(
            [
                '\x1b[0;33mproperty:\x1b[0m',
                (
                    '    \x1b[0;36m__builtins__\x1b[0m\x1b[1;30m, '
                    '\x1b[0m\x1b[0;36ma\x1b[0m\x1b[1;30m, '
                    '\x1b[0m\x1b[0;36mb\x1b[0m'
                ),
                '\x1b[0;33mmodule attribute:\x1b[0m',
                (
                    '    \x1b[0;36m__cached__\x1b[0m\x1b[1;30m, '
                    '\x1b[0m\x1b[0;36m__file__\x1b[0m\x1b[1;30m, '
                    '\x1b[0m\x1b[0;36m__loader__\x1b[0m\x1b[1;30m, '
                    '\x1b[0m\x1b[0;36m__name__\x1b[0m\x1b[1;30m, '
                    '\x1b[0m\x1b[0;36m__package__\x1b[0m\x1b[1;30m, '
                    '\x1b[0m\x1b[0;36m__spec__\x1b[0m'
                ),
                '\x1b[0;33mspecial attribute:\x1b[0m',
                '    \x1b[0;36m__doc__\x1b[0m',
                '\x1b[0;33mclass:\x1b[0m',
                '    \x1b[0;36mOOO\x1b[0m\x1b[0;36m: '
                '\x1b[0m\x1b[1;30mOOO today.\x1b[0m',
                '\x1b[0;33mfunction:\x1b[0m',
                (
                    '    \x1b[0;36mfunc\x1b[0m\x1b[0;36m: '
                    '\x1b[0m\x1b[1;30mThis is a function\x1b[0m'
                ),
            ]
        )
>       assert repr(result) == expected
E       AssertionError: assert '\x1b[0;33mpr...nction\x1b[0m' == '\x1b[0;33mpr...nction\x1b[0m'
E         
E         Skipping 131 identical leading characters in diff, use -v to show
E         -  __cached__, __file__, __loader__, __name__, __package__, __spec__
E         ?  ----------------------------------
E         +  __file__, __loader__, __name__, __package__, __spec__
E           special attribute:
E               __doc__...
E         
E         ...Full output truncated (4 lines hidden), use '-vv' to show


https://docs.python.org/3.15/whatsnew/3.15.html

For the build logs, see:
https://copr-be.cloud.fedoraproject.org/results/@python/python3.15/fedora-rawhide-x86_64/09935373-python-pdir2/

For all our attempts to build python-pdir2 with Python 3.15, see:
https://copr.fedorainfracloud.org/coprs/g/python/python3.15/package/python-pdir2/

Testing and mass rebuild of packages is happening in copr.
You can follow these instructions to test locally in mock if your package builds with Python 3.15:
https://copr.fedorainfracloud.org/coprs/g/python/python3.15/

Let us know here if you have any questions.

Python 3.15 is planned to be included in Fedora 45.
To make that update smoother, we're building Fedora packages with all pre-releases of Python 3.15.
A build failure prevents us from testing all dependent packages (transitive [Build]Requires),
so if this package is required a lot, it's important for us to get it fixed soon.

We'd appreciate help from the people who know this package best,
but if you don't want to work on this now, let us know so we can try to work around it on our side.

Comment 1 Fedora Admin user for bugzilla script actions 2026-02-02 12:56:56 UTC
This package has changed maintainer in Fedora. Reassigning to the new maintainer of this component.

Comment 2 Maxwell G 2026-03-23 18:56:30 UTC
Automation has figured out the package is retired in Fedora Rawhide.

If you like it to be unretired, please open a ticket at
https://forge.fedoraproject.org/releng/tickets/issues/new?template=.forgejo%2fISSUE_TEMPLATE%2funretire-package.md


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