Bug 2033200 - python-distlib fails to build with Python 3.11: AssertionError: self.assertIn(actual, expected)
Summary: python-distlib fails to build with Python 3.11: AssertionError: self.assertIn...
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Fedora
Classification: Fedora
Component: python-distlib
Version: 36
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Charalampos Stratakis
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks: PYTHON3.11
TreeView+ depends on / blocked
 
Reported: 2021-12-16 08:03 UTC by Tomáš Hrnčiar
Modified: 2022-03-23 21:41 UTC (History)
5 users (show)

Fixed In Version: python-distlib-0.3.4-3.fc37
Clone Of:
Environment:
Last Closed: 2022-03-23 21:41:16 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Github pypa distlib issues 161 0 None open test_sequencer_basic failure 2022-02-15 14:54:07 UTC

Description Tomáš Hrnčiar 2021-12-16 08:03:29 UTC
python-distlib fails to build with Python 3.11.0a3.

======================================================================
FAIL: test_sequencer_basic (test_util.UtilTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/builddir/build/BUILD/distlib-0.3.4/tests/test_util.py", line 410, in test_sequencer_basic
    self.assertIn(actual, expected)
    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
AssertionError: [('upload_sdist',), ('sdist',), ('install',), ('install_distinfo',), ('install_data',), ('install_scripts',), ('install_lib',), ('install_headers',), ('test',), ('upload_bdist',), ('build',), ('build_scripts',), ('build_py',), ('build_ext',), ('build_clibs',), ('register',), ('check',)] not found in ([('test',), ('upload_bdist',), ('install',), ('install_distinfo',), ('install_data',), ('install_scripts',), ('install_lib',), ('install_headers',), ('build',), ('build_scripts',), ('build_py',), ('build_ext',), ('build_clibs',), ('upload_sdist',), ('sdist',), ('register',), ('check',)], [('install',), ('install_distinfo',), ('install_data',), ('install_scripts',), ('install_lib',), ('install_headers',), ('test',), ('upload_bdist',), ('build',), ('build_scripts',), ('build_py',), ('build_ext',), ('build_clibs',), ('upload_sdist',), ('sdist',), ('register',), ('check',)], [('upload_sdist',), ('sdist',), ('install',), ('install_distinfo',), ('install_data',), ('upload_bdist',), ('register',), ('install_scripts',), ('install_lib',), ('install_headers',), ('test',), ('build',), ('build_scripts',), ('build_py',), ('build_ext',), ('build_clibs',), ('check',)], [('upload_sdist',), ('sdist',), ('upload_bdist',), ('register',), ('test',), ('install',), ('install_distinfo',), ('install_data',), ('install_scripts',), ('install_lib',), ('install_headers',), ('build',), ('build_scripts',), ('build_py',), ('build_ext',), ('build_clibs',), ('check',)], [('upload_sdist',), ('sdist',), ('upload_bdist',), ('register',), ('install',), ('install_distinfo',), ('install_data',), ('install_scripts',), ('install_lib',), ('install_headers',), ('test',), ('build',), ('build_scripts',), ('build_py',), ('build_ext',), ('build_clibs',), ('check',)])

----------------------------------------------------------------------
Ran 235 tests in 10.582s

FAILED (failures=1, skipped=32)

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/03057695-python-distlib/

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

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 Tomáš Hrnčiar 2021-12-22 08:17:31 UTC
Version 0.3.3 builds well with Python 3.11, seems like the problem was introduced in 0.3.4.

Comment 2 Ben Cotton 2022-02-08 21:19:40 UTC
This bug appears to have been reported against 'rawhide' during the Fedora 36 development cycle.
Changing version to 36.

Comment 3 Tomáš Hrnčiar 2022-02-15 14:54:07 UTC
(In reply to Tomáš Hrnčiar from comment #1)
> Version 0.3.3 builds well with Python 3.11, seems like the problem was
> introduced in 0.3.4.

Disregard this comment. It turned out that tests were disabled on 0.3.3 and that's why the build passed. When I enabled them, 0.3.3 also failed with Python 3.11. 

This was already reported in the upstream and the problem is that the test is sensitive to dictionary ordering.

Comment 4 Fedora Update System 2022-03-23 21:37:31 UTC
FEDORA-2022-bf65dc871c has been submitted as an update to Fedora 37. https://bodhi.fedoraproject.org/updates/FEDORA-2022-bf65dc871c

Comment 5 Fedora Update System 2022-03-23 21:41:16 UTC
FEDORA-2022-bf65dc871c has been pushed to the Fedora 37 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.