Bug 2247031

Summary: python-parameterized fails to build with Python 3.13: FAIL: test_multiline_documentation_0_foo (indentation doesn't match the expected)
Product: [Fedora] Fedora Reporter: Karolina Surma <ksurma>
Component: python-parameterizedAssignee: Ben Beasley <code>
Status: CLOSED ERRATA QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: rawhideCC: code, ksurma, mhroncok
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: python-parameterized-0.9.0-6.fc40 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2023-10-30 15:04:11 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: 2244836    

Description Karolina Surma 2023-10-30 12:35:53 UTC
python-parameterized fails to build with Python 3.13.0a1.

This report is automated and not very verbose, but we'll try to get back here with details.

======================================================================
FAIL: test_multiline_documentation_0_foo (parameterized.test.TestParameterizedExpandDocstring.test_multiline_documentation_0_foo)
Documentation [with foo='foo'].
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/builddir/build/BUILD/parameterized-0.9.0/parameterized/parameterized.py", line 620, in standalone_func
    return func(*(a + p.args), **p.kwargs, **kw)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/builddir/build/BUILD/parameterized-0.9.0/parameterized/test.py", line 411, in test_multiline_documentation
    self._assert_docstring(
  File "/builddir/build/BUILD/parameterized-0.9.0/parameterized/test.py", line 388, in _assert_docstring
    assert_equal(actual_docstring, expected_docstring)
  File "/builddir/build/BUILD/parameterized-0.9.0/parameterized/test.py", line 12, in assert_equal
    return TestCase().assertEqual(*args, **kwds)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
AssertionError: "Documentation [with foo='foo'].\n\nMore" != "Documentation [with foo='foo'].\n\n        More"
  Documentation [with foo='foo'].
  
- More
+         More

Compiler now strip indents from docstrings. This will reduce the size of bytecode cache (e.g. .pyc file). For example, cache file size for sqlalchemy.orm.session in SQLAlchemy 2.0 is reduced by about 5%. This change will affect tools using docstrings, like doctest. (Contributed by Inada Naoki in gh-81283.)

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

For the build logs, see:
https://copr-be.cloud.fedoraproject.org/results/@python/python3.13/fedora-rawhide-x86_64/06573332-python-parameterized/

For all our attempts to build python-parameterized with Python 3.13, see:
https://copr.fedorainfracloud.org/coprs/g/python/python3.13/package/python-parameterized/

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

Let us know here if you have any questions.

Python 3.13 is planned to be included in Fedora 41.
To make that update smoother, we're building Fedora packages with all pre-releases of Python 3.13.
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 Fedora Update System 2023-10-30 15:02:27 UTC
FEDORA-2023-e13a2e8da3 has been submitted as an update to Fedora 40. https://bodhi.fedoraproject.org/updates/FEDORA-2023-e13a2e8da3

Comment 2 Fedora Update System 2023-10-30 15:04:11 UTC
FEDORA-2023-e13a2e8da3 has been pushed to the Fedora 40 stable repository.
If problem still persists, please make note of it in this bug report.