Bug 2247031 - python-parameterized fails to build with Python 3.13: FAIL: test_multiline_documentation_0_foo (indentation doesn't match the expected)
Summary: python-parameterized fails to build with Python 3.13: FAIL: test_multiline_do...
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Fedora
Classification: Fedora
Component: python-parameterized
Version: rawhide
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Ben Beasley
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks: PYTHON3.13
TreeView+ depends on / blocked
 
Reported: 2023-10-30 12:35 UTC by Karolina Surma
Modified: 2023-10-30 15:04 UTC (History)
3 users (show)

Fixed In Version: python-parameterized-0.9.0-6.fc40
Clone Of:
Environment:
Last Closed: 2023-10-30 15:04:11 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)

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.


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