Bug 2458688 - yt-dlp fails to build with Python 3.15: test_clean_pot_fail: AssertionError: assert 'TwAA_-9VA6Q9...extra-param0=' == 'TwAA_-9VA6Q92v_vEQ4='
Summary: yt-dlp fails to build with Python 3.15: test_clean_pot_fail: AssertionError: ...
Keywords:
Status: NEW
Alias: None
Product: Fedora
Classification: Fedora
Component: yt-dlp
Version: rawhide
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Maxwell G
QA Contact:
URL:
Whiteboard:
Depends On:
Blocks: PYTHON3.15
TreeView+ depends on / blocked
 
Reported: 2026-04-15 14:18 UTC by Karolina Surma
Modified: 2026-04-15 14:18 UTC (History)
5 users (show)

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


Attachments (Terms of Use)

Description Karolina Surma 2026-04-15 14:18:47 UTC
yt-dlp fails to build with Python 3.15.0a8.

___________________________ test_clean_pot_fail[123] ___________________________

po_token = '123'

    @pytest.mark.parametrize('po_token', [
        'invalid-token?',
        '123',
    ])
    def test_clean_pot_fail(po_token):
>       with pytest.raises(ValueError, match='Invalid PO Token'):
             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
E       Failed: DID NOT RAISE <class 'ValueError'>

test/test_pot/test_pot_director.py:1450: Failed
_ test_clean_pot[TwAA%5F%2D9VA6Q92v%5FvEQ4==?extra-param=2-TwAA_-9VA6Q92v_vEQ4=] _

po_token = 'TwAA%5F%2D9VA6Q92v%5FvEQ4==?extra-param=2'
expected = 'TwAA_-9VA6Q92v_vEQ4='

    @pytest.mark.parametrize('po_token,expected', [
        ('TwAA/+8=', 'TwAA_-8='),
        ('TwAA%5F%2D9VA6Q92v%5FvEQ4==?extra-param=2', 'TwAA_-9VA6Q92v_vEQ4='),
    ])
    def test_clean_pot(po_token, expected):
>       assert clean_pot(po_token) == expected
E       AssertionError: assert 'TwAA_-9VA6Q9...extra-param0=' == 'TwAA_-9VA6Q92v_vEQ4='
E         
E         - TwAA_-9VA6Q92v_vEQ4=
E         + TwAA_-9VA6Q92v_vEQ4extra-param0=
E         ?                    ++++++++++++

test/test_pot/test_pot_director.py:1459: AssertionError

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/10318912-yt-dlp/

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

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.


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