Bug 2082052 - python-zope-testing fails to build with Python 3.11: AssertionError: Failed doctest test for doctestcase.txt
Summary: python-zope-testing fails to build with Python 3.11: AssertionError: Failed d...
Keywords:
Status: CLOSED RAWHIDE
Alias: None
Product: Fedora
Classification: Fedora
Component: python-zope-testing
Version: rawhide
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Aurelien Bompard
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks: PYTHON3.11
TreeView+ depends on / blocked
 
Reported: 2022-05-05 10:20 UTC by Tomáš Hrnčiar
Modified: 2022-11-24 20:28 UTC (History)
9 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2022-06-22 11:49:14 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)

Description Tomáš Hrnčiar 2022-05-05 10:20:00 UTC
python-zope-testing fails to build with Python 3.11.0a7.


======================================================================
FAIL: /builddir/build/BUILD/zope.testing-4.7/src/zope/testing/doctestcase.txt
Doctest: doctestcase.txt
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/usr/lib64/python3.11/doctest.py", line 2217, in runTest
    raise self.failureException(self.format_failure(new.getvalue()))
    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
AssertionError: Failed doctest test for doctestcase.txt
  File "/builddir/build/BUILD/zope.testing-4.7/src/zope/testing/doctestcase.txt", line 0

----------------------------------------------------------------------
File "/builddir/build/BUILD/zope.testing-4.7/src/zope/testing/doctestcase.txt", line 76, in doctestcase.txt
Failed example:
    result = suite.run(unittest.TextTestResult(sys.stdout, True, 3))
Expected:
    test1 (tests.MyTest) ... ok
    test2 (tests.MyTest) ... ok
    test3 (tests.MyTest) ... ok
    test4 (tests.MyTest) ... ok
Got:
    test1 (tests.MyTest.test1) ... ok
    test2 (tests.MyTest.test2) ... ok
    test3 (tests.MyTest.test3) ... ok
    test4 (tests.MyTest.test4) ... ok
----------------------------------------------------------------------
File "/builddir/build/BUILD/zope.testing-4.7/src/zope/testing/doctestcase.txt", line 83, in doctestcase.txt
Failed example:
    result = suite.run(unittest.TextTestResult(sys.stdout, True, 3))
Expected:
    test_loggingsupport (tests.MoreTests) ... ok
    test_renormalizing (tests.MoreTests) ... ok
Got:
    test_loggingsupport (tests.MoreTests.test_loggingsupport) ... ok
    test_renormalizing (tests.MoreTests.test_renormalizing) ... ok
----------------------------------------------------------------------
File "/builddir/build/BUILD/zope.testing-4.7/src/zope/testing/doctestcase.txt", line 309, in doctestcase.txt
Failed example:
    result = suite.run(unittest.TextTestResult(sys.stdout, True, 2))
Expected:
    test2 (tests.MyTest) ... ok
    test3 (tests.MyTest) ... ok
    test4 (tests.MyTest) ... ok
Got:
    test2 (tests.MyTest.test2) ... ok
    test3 (tests.MyTest.test3) ... ok
    test4 (tests.MyTest.test4) ... ok


----------------------------------------------------------------------
Ran 12 tests in 0.149s

FAILED (failures=1)

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

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

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

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

Let us know here if you have any questions.

Python 3.11 is planned to be included in Fedora 37. To make that update smoother, we're building Fedora packages with all pre-releases of Python 3.11.
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 Miro Hrončok 2022-06-22 11:49:14 UTC
Closing this in bulk as it built with Python 3.11. If this needs to remain open for a followup, feel free to reopen, I won't close in bulk again.

Comment 2 Matt Rixman 2022-11-24 20:28:11 UTC
I'm not using redhat, but I *am* seeing this issue.  I can't supply much more context, but here's the issue I wrote for it: https://github.com/NixOS/nixpkgs/issues/202732


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