Bug 2082165

Summary: python-manuel fails to build with Python 3.11: doctest failure due to enhanced tracebacks
Product: [Fedora] Fedora Reporter: Tomáš Hrnčiar <thrnciar>
Component: python-manuelAssignee: Fedora Infrastructure SIG <infra-sig>
Status: CLOSED RAWHIDE QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: rawhideCC: infra-sig, kevin, loganjerry, mhroncok, nphilipp, rbean, thrnciar
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: python-manuel-1.11.2-2.fc37 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2022-06-20 17:23:38 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: 2016048, 2045102, 2045109    

Description Tomáš Hrnčiar 2022-05-05 14:05:16 UTC
python-manuel fails to build with Python 3.11.0a7.

+ /usr/bin/python3 -m unittest manuel.tests.test_suite
......F.....................................................
======================================================================
FAIL: /builddir/build/BUILDROOT/python-manuel-1.10.1-15.fc37.x86_64/usr/lib/python3.11/site-packages/manuel/index.txt:Others
/builddir/build/BUILDROOT/python-manuel-1.10.1-15.fc37.x86_64/usr/lib/python3.11/site-packages/manuel/index.txt:Others
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/builddir/build/BUILDROOT/python-manuel-1.10.1-15.fc37.x86_64/usr/lib/python3.11/site-packages/manuel/testing.py", line 48, in runTest
    raise real_doctest.DocTestCase.failureException(
    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
AssertionError: 
----------------------------------------------------------------------
File "/builddir/build/BUILDROOT/python-manuel-1.10.1-15.fc37.x86_64/usr/lib/python3.11/site-packages/manuel/index.txt", line 214, in index.txt
Failed example:
    result = suite.run(unittest.TextTestResult(sys.stdout, True, 3))
Expected:
    test1 (tests.MyTest) ... ok
    test2 (tests.MyTest) ... ok
    test3 (tests.MyTest) ... FAIL
Got:
    test1 (tests.MyTest.test1) ... ok
    test2 (tests.MyTest.test2) ... ok
    test3 (tests.MyTest.test3) ... FAIL


----------------------------------------------------------------------
Ran 60 tests in 0.059s

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/04348329-python-manuel/

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

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-20 10:18:24 UTC
*** Bug 2098997 has been marked as a duplicate of this bug. ***

Comment 2 Jerry James 2022-06-20 17:23:38 UTC
I have added a workaround to the package for now.  Upstream is still discussing the best approach to take in https://github.com/benji-york/manuel/pull/32.  Once upstream releases a version with a fix, we will drop the workaround.  Closing this bug as the package now builds and installs in Rawhide.