Bug 2424602 - python-robotframework fails to build with Python 3.15: AssertionError: Expected output to be empty:/builddir/build/BUILD/python-robotframework-7.4-build/robotframework-7.4/utest/../src/robot/result/resultbuilder.py:147: ResourceWarning: unclosed iterparse
Summary: python-robotframework fails to build with Python 3.15: AssertionError: Expect...
Keywords:
Status: CLOSED RAWHIDE
Alias: None
Product: Fedora
Classification: Fedora
Component: python-robotframework
Version: rawhide
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: fedepell
QA Contact:
URL:
Whiteboard:
Depends On:
Blocks: PYTHON3.15
TreeView+ depends on / blocked
 
Reported: 2025-12-23 14:15 UTC by Karolina Surma
Modified: 2025-12-26 10:07 UTC (History)
5 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2025-12-26 10:07:36 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)

Description Karolina Surma 2025-12-23 14:15:52 UTC
python-robotframework fails to build with Python 3.15.0a3.

There is 10 test failures: 

======================================================================
FAIL: test_run_once (test_run_and_rebot.TestRun.test_run_once)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/builddir/build/BUILD/python-robotframework-7.4-build/robotframework-7.4/utest/api/test_run_and_rebot.py", line 64, in test_run_once
    self._assert_outputs([("Pass And Fail", 2), (LOG, 1), ("Report:", 0)])
    ~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/builddir/build/BUILD/python-robotframework-7.4-build/robotframework-7.4/utest/resources/runningtestcase.py", line 40, in _assert_outputs
    self._assert_output(sys.stderr, None)
    ~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^
  File "/builddir/build/BUILD/python-robotframework-7.4-build/robotframework-7.4/utest/resources/runningtestcase.py", line 48, in _assert_output
    self._assert_no_output(output)
    ~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^
  File "/builddir/build/BUILD/python-robotframework-7.4-build/robotframework-7.4/utest/resources/runningtestcase.py", line 52, in _assert_no_output
    raise AssertionError(f"Expected output to be empty:{output}")
AssertionError: Expected output to be empty:/builddir/build/BUILD/python-robotframework-7.4-build/robotframework-7.4/utest/../src/robot/result/resultbuilder.py:147: ResourceWarning: unclosed iterparse iterator '/tmp/output.xml'
  self._parse(source, handler.start, handler.end)

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/09935411-python-robotframework/

For all our attempts to build python-robotframework with Python 3.15, see:
https://copr.fedorainfracloud.org/coprs/g/python/python3.15/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/

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 2025-12-26 10:07:36 UTC
Fixed in https://bodhi.fedoraproject.org/updates/FEDORA-2025-0fcf57436d

Did MR upstream, got merged, new minor release -> updated RPM to that.

Didn't get it automatically since I mistyped rhbz ewww :/


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