Bug 2335907

Summary: python-zope-testrunner fails to build with Python 3.14: difference in the asserted content in testrunner-edge-cases.rst
Product: [Fedora] Fedora Reporter: Karolina Surma <ksurma>
Component: python-zope-testrunnerAssignee: Michel Lind <michel>
Status: CLOSED ERRATA QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: rawhideCC: aurelien, epel-packagers-sig, infra-sig, ksurma, mhroncok, michel
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: python-zope-testrunner-6.6-5.fc43 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2025-05-23 18:10:58 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: 2322407    

Description Karolina Surma 2025-01-06 17:07:09 UTC
python-zope-testrunner fails to build with Python 3.14.0a3.

+ /usr/bin/python3 -m tox --current-env -q --recreate -e py314
Running tests at level 1
Running zope.testrunner.layer.UnitTests tests:
  Set up zope.testrunner.layer.UnitTests in 0.000 seconds.
  Running:
.............

Failure in test /builddir/build/BUILD/python-zope-testrunner-6.6-build/BUILDROOT/usr/lib/python3.14/site-packages/zope/testrunner/tests/testrunner-edge-cases.rst
Failed doctest test for testrunner-edge-cases.rst
  File "/builddir/build/BUILD/python-zope-testrunner-6.6-build/BUILDROOT/usr/lib/python3.14/site-packages/zope/testrunner/tests/testrunner-edge-cases.rst", line 0

----------------------------------------------------------------------
File "/builddir/build/BUILD/python-zope-testrunner-6.6-build/BUILDROOT/usr/lib/python3.14/site-packages/zope/testrunner/tests/testrunner-edge-cases.rst", line 91, in testrunner-edge-cases.rst
Failed example:
    try: testrunner.run_internal(defaults)
    finally: sys.stdin = real_stdin
    # doctest: +ELLIPSIS
Differences (ndiff with -expected +actual):
    - Running zope.testrunner.layer.UnitTests tests:...
    ?                                               ---
    + Running zope.testrunner.layer.UnitTests tests:
    +   Set up zope.testrunner.layer.UnitTests in N.NNN seconds.
    - > testrunner-ex/sample3/sampletests_d.py(NNN)f()
    - -> ...
      (Pdb) p x
    - 1
      (Pdb) c
        Ran 1 tests with 0 failures, 0 errors and 0 skipped in N.NNN seconds.
    - ...
    + Tearing down left over layers:
    +   Tear down zope.testrunner.layer.UnitTests in N.NNN seconds.
      False


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

For the build logs, see:
https://copr-be.cloud.fedoraproject.org/results/@python/python3.14/fedora-rawhide-x86_64/08474928-python-zope-testrunner/

For all our attempts to build python-zope-testrunner with Python 3.14, see:
https://copr.fedorainfracloud.org/coprs/g/python/python3.14/package/python-zope-testrunner/

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.14:
https://copr.fedorainfracloud.org/coprs/g/python/python3.14/

Let us know here if you have any questions.

Python 3.14 is planned to be included in Fedora 43.
To make that update smoother, we're building Fedora packages with all pre-releases of Python 3.14.
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 Aoife Moloney 2025-02-26 13:21:17 UTC
This bug appears to have been reported against 'rawhide' during the Fedora Linux 42 development cycle.
Changing version to 42.

Comment 2 Fedora Update System 2025-05-23 18:06:07 UTC
FEDORA-2025-bcfac7c091 (python-zope-testrunner-6.6-5.fc43) has been submitted as an update to Fedora 43.
https://bodhi.fedoraproject.org/updates/FEDORA-2025-bcfac7c091

Comment 3 Fedora Update System 2025-05-23 18:10:58 UTC
FEDORA-2025-bcfac7c091 (python-zope-testrunner-6.6-5.fc43) has been pushed to the Fedora 43 stable repository.
If problem still persists, please make note of it in this bug report.