Bug 2424323

Summary: yle-dl fails to build with Python 3.15: AssertionError: assert datetime.datetime(2018, 1, 2, 18, 30) is None where datetime.datetime(2018, 1, 2, 18, 30) = parse_areena_timestamp('2018-01-02T18:30:00')
Product: [Fedora] Fedora Reporter: Karolina Surma <ksurma>
Component: yle-dlAssignee: Otto Liljalaakso <otto.liljalaakso>
Status: CLOSED ERRATA QA Contact:
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: rawhideCC: ksurma, mhroncok, otto.liljalaakso, vpvainio
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: yle-dl-20250730-5.fc44 Doc Type: ---
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2025-12-27 13:41:22 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On:    
Bug Blocks: 2412434    

Description Karolina Surma 2025-12-22 16:19:41 UTC
yle-dl fails to build with Python 3.15.0a3.

____________________________ test_invalid_timestamp ____________________________

    def test_invalid_timestamp():
        assert parse_areena_timestamp('xxx2018-01-02T18:30:00+02:00') is None
>       assert parse_areena_timestamp('2018-01-02T18:30:00') is None
E       AssertionError: assert datetime.datetime(2018, 1, 2, 18, 30) is None
E        +  where datetime.datetime(2018, 1, 2, 18, 30) = parse_areena_timestamp('2018-01-02T18:30:00')

tests/unit/test_timestamp.py:36: AssertionError
----------------------------- Captured stderr call -----------------------------
WARNING: Failed to parse timestamp: xxx2018-01-02T18:30:00+02:00
------------------------------ Captured log call -------------------------------
WARNING  yledl:timestamp.py:34 Failed to parse timestamp: xxx2018-01-02T18:30:00+02:00
=========================== short test summary info ============================
FAILED tests/unit/test_timestamp.py::test_invalid_timestamp - AssertionError:...
========================= 1 failed, 75 passed in 0.23s =========================

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/09935497-yle-dl/

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

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 Update System 2025-12-27 13:38:21 UTC
FEDORA-2025-e24caa39bf (yle-dl-20250730-5.fc44) has been submitted as an update to Fedora 44.
https://bodhi.fedoraproject.org/updates/FEDORA-2025-e24caa39bf

Comment 2 Fedora Update System 2025-12-27 13:41:22 UTC
FEDORA-2025-e24caa39bf (yle-dl-20250730-5.fc44) has been pushed to the Fedora 44 stable repository.
If problem still persists, please make note of it in this bug report.