Bug 2351387 - python-osc-lib fails to build with Python 3.14: testtools.matchers._impl.MismatchError in 4 tests
Summary: python-osc-lib fails to build with Python 3.14: testtools.matchers._impl.Mism...
Keywords:
Status: NEW
Alias: None
Product: Fedora
Classification: Fedora
Component: python-osc-lib
Version: rawhide
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Alfredo Moralejo
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
: 2372019 (view as bug list)
Depends On:
Blocks: PYTHON3.14 F43FTBFS, RAWHIDEFTBFS F43FailsToInstall, RAWHIDEFailsToInstall 2371937 2371952 2371971 2371979 2371998 2372005 2372009 2372016 2372109 2372114 2372158 2372175 2372207
TreeView+ depends on / blocked
 
Reported: 2025-03-11 15:21 UTC by Karolina Surma
Modified: 2025-06-13 18:00 UTC (History)
9 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed:
Type: Bug
Embargoed:


Attachments (Terms of Use)

Description Karolina Surma 2025-03-11 15:21:09 UTC
python-osc-lib fails to build with Python 3.14.0a5.

==============================
Failed 4 tests - output below:
==============================

osc_lib.tests.utils.test_tags.TestTagHelps.test_add_tag_filtering_option_to_parser
----------------------------------------------------------------------------------

Captured traceback:
~~~~~~~~~~~~~~~~~~~
    Traceback (most recent call last):

      File "/builddir/build/BUILD/python-osc-lib-3.1.0-build/osc-lib-3.1.0/osc_lib/tests/utils/test_tags.py", line 221, in test_add_tag_filtering_option_to_parser
            self._test_tag_method_help(
            ~~~~~~~~~~~~~~~~~~~~~~~~~~^
                tags.add_tag_filtering_option_to_parser,
                ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
    ...<39 lines>...
    """,
    ^^^^
            )
            ^

      File "/builddir/build/BUILD/python-osc-lib-3.1.0-build/osc-lib-3.1.0/osc_lib/tests/utils/test_tags.py", line 214, in _test_tag_method_help
    self.assertEqual(exp_normal % options_name, parser.format_help())
    ~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

      File "/usr/lib/python3.14/site-packages/testtools/testcase.py", line 419, in assertEqual
    self.assertThat(observed, matcher, message)
    ~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^

      File "/usr/lib/python3.14/site-packages/testtools/testcase.py", line 509, in assertThat
    raise mismatch_error

    testtools.matchers._impl.MismatchError: !=:
reference = '''\
usage: run.py [-h] [--tags <tag>[,<tag>,...]] [--any-tags <tag>[,<tag>,...]]
              [--not-tags <tag>[,<tag>,...]]
              [--not-any-tags <tag>[,<tag>,...]]

options:
  -h, --help            show this help message and exit
  --tags <tag>[,<tag>,...]
                        List test which have all given tag(s) (Comma-separated
                        list of tags)
  --any-tags <tag>[,<tag>,...]
                        List test which have any given tag(s) (Comma-separated
                        list of tags)
  --not-tags <tag>[,<tag>,...]
                        Exclude test which have all given tag(s) (Comma-
                        separated list of tags)
  --not-any-tags <tag>[,<tag>,...]
                        Exclude test which have any given tag(s) (Comma-
                        separated list of tags)
'''
actual    = '''\
usage: python3 -m stestr.subunit_runner.run [-h] [--tags <tag>[,<tag>,...]]
                                            [--any-tags <tag>[,<tag>,...]]
                                            [--not-tags <tag>[,<tag>,...]]
                                            [--not-any-tags <tag>[,<tag>,...]]

options:
  -h, --help            show this help message and exit
  --tags <tag>[,<tag>,...]
                        List test which have all given tag(s) (Comma-separated
                        list of tags)
  --any-tags <tag>[,<tag>,...]
                        List test which have any given tag(s) (Comma-separated
                        list of tags)
  --not-tags <tag>[,<tag>,...]
                        Exclude test which have all given tag(s) (Comma-
                        separated list of tags)
  --not-any-tags <tag>[,<tag>,...]
                        Exclude test which have any given tag(s) (Comma-
                        separated list of tags)
'''

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/08736446-python-osc-lib/

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

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 Karolina Surma 2025-06-11 16:01:25 UTC
*** Bug 2372019 has been marked as a duplicate of this bug. ***


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