Bug 2479759

Summary: python-robotframework fails to build with Python 3.15: test failures related to changes in pprint output
Product: [Fedora] Fedora Reporter: Karolina Surma <ksurma>
Component: python-robotframeworkAssignee: fedepell <fede>
Status: CLOSED NOTABUG QA Contact:
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: rawhideCC: fede, jkadlcik, ksurma, mhroncok, pszubiak
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: ---
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2026-05-25 12:25:55 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 2026-05-19 08:57:23 UTC
python-robotframework fails to build with Python 3.15.0b1.

test_dont_split_long_strings and test_split_big_collections fail because of the recent changes in the pprint output.

https://docs.python.org/3.15/whatsnew/3.15.html:
pprint now uses modern defaults: indent=4, width=88, and the default compact=False output is now formatted similar to pretty-printed json.dumps(). (Contributed by Stefan Todoran, Semyon Moroz and Hugo van Kemenade in gh-112632 and gh-149189.)

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

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

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-b1/

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 fedepell 2026-05-19 15:16:16 UTC
Reported upstream with a proposed solution: https://github.com/robotframework/robotframework/issues/5679

Comment 2 fedepell 2026-05-22 13:14:52 UTC
Would seem upstream will revert the changes:

>      Yep, we're reverting this change (python/cpython#150249) so should be back to the old defaults in 3.15.0b2 on 2026-06-02.

So probably we just wait and check next beta and see what happens to the tests.

Comment 3 fedepell 2026-05-22 13:16:51 UTC
https://github.com/python/cpython/pull/150249

Comment 4 Karolina Surma 2026-05-25 08:14:53 UTC
Thank you for sharing, there's more hit by this change, good to know.