Bug 2033204 - python-sh fails to build with Python 3.11: AssertionError: 22 != 20 : (22, 20, {'_tty_out': True, '_tty_in': False, '_err_to_out': False})
Summary: python-sh fails to build with Python 3.11: AssertionError: 22 != 20 : (22, 20...
Alias: None
Product: Fedora
Classification: Fedora
Component: python-sh
Version: 36
Hardware: Unspecified
OS: Unspecified
Target Milestone: ---
Assignee: Carl George 🤠
QA Contact: Fedora Extras Quality Assurance
Depends On:
Blocks: PYTHON3.11
TreeView+ depends on / blocked
Reported: 2021-12-16 08:26 UTC by Tomáš Hrnčiar
Modified: 2022-03-19 05:11 UTC (History)
7 users (show)

Fixed In Version: python-sh-1.14.2-5.fc37
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Last Closed: 2022-03-19 05:11:52 UTC
Type: Bug

Attachments (Terms of Use)

Description Tomáš Hrnčiar 2021-12-16 08:26:58 UTC
python-sh fails to build with Python 3.11.0a3.

FAIL: test_no_fd_leak (__main__.MiscTests)
Traceback (most recent call last):
  File "/builddir/build/BUILD/sh-1.14.2/test.py", line 2862, in test_no_fd_leak
    self.assertEqual(baseline, num_fds, (baseline, num_fds, opts))
AssertionError: 22 != 20 : (22, 20, {'_tty_out': True, '_tty_in': False, '_err_to_out': False})

Ran 171 tests in 41.525s

FAILED (failures=1, skipped=1)


For the build logs, see:

For all our attempts to build python-sh with Python 3.11, see:

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:

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 Ben Cotton 2022-02-08 21:21:19 UTC
This bug appears to have been reported against 'rawhide' during the Fedora 36 development cycle.
Changing version to 36.

Comment 2 Carl George 🤠 2022-03-19 04:56:52 UTC
In https://github.com/amoffat/sh/issues/600, upstream acknowledges this is a "flaky test by nature".  I'm just going to skip it.

Comment 3 Fedora Update System 2022-03-19 05:11:21 UTC
FEDORA-2022-e5600e6670 has been submitted as an update to Fedora 37. https://bodhi.fedoraproject.org/updates/FEDORA-2022-e5600e6670

Comment 4 Fedora Update System 2022-03-19 05:11:52 UTC
FEDORA-2022-e5600e6670 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.