Note: This is a public test instance of Red Hat Bugzilla. The data contained within is a snapshot of the live data so any changes you make will not be reflected in the production Bugzilla. Email is disabled so feel free to test any aspect of the site that you want. File any problems you find or give feedback at
Bug 2196739 - python-fastbencode fails to build with Python 3.12: AssertionError: RuntimeError not raised by bdecode
Summary: python-fastbencode fails to build with Python 3.12: AssertionError: RuntimeEr...
Alias: None
Product: Fedora
Classification: Fedora
Component: python-fastbencode
Version: rawhide
Hardware: Unspecified
OS: Unspecified
Target Milestone: ---
Assignee: Ondřej Pohořelský
QA Contact:
: 2220219 (view as bug list)
Depends On:
Blocks: F39FTBFS F39FailsToInstall PYTHON3.12 2219952 2219955 2219990 2220016 2220200
TreeView+ depends on / blocked
Reported: 2023-05-10 06:11 UTC by Tomáš Hrnčiar
Modified: 2023-07-11 11:29 UTC (History)
5 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Last Closed: 2023-07-11 11:29:32 UTC
Type: Bug

Attachments (Terms of Use)

System ID Private Priority Status Summary Last Updated
Github breezy-team fastbencode issues 23 0 None open Compatibility with Python 3.12: AssertionError: RuntimeError not raised by bdecode 2023-07-11 07:24:23 UTC

Description Tomáš Hrnčiar 2023-05-10 06:11:34 UTC
python-fastbencode fails to build with Python 3.12.0a7.

FAIL: test_list_deepnested (fastbencode.tests.test_bencode.TestBencodeDecode.test_list_deepnested)
Traceback (most recent call last):
  File "/builddir/build/BUILD/fastbencode-0.0.9/fastbencode/tests/", line 297, in test_list_deepnested
    self._run_check_error(RuntimeError, (b"l" * 100) + (b"e" * 100))
  File "/builddir/build/BUILD/fastbencode-0.0.9/fastbencode/tests/", line 238, in _run_check_error
    self.assertRaises(exc, self.module.bdecode, bad)
AssertionError: RuntimeError not raised by bdecode

For the build logs, see:

For all our attempts to build python-fastbencode with Python 3.12, 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.12:

Let us know here if you have any questions.

Python 3.12 is planned to be included in Fedora 39. To make that update smoother, we're building Fedora packages with all pre-releases of Python 3.12.
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 Miro Hrončok 2023-07-06 08:03:44 UTC
*** Bug 2220219 has been marked as a duplicate of this bug. ***

Comment 2 Fedora Fails To Install 2023-07-11 11:29:32 UTC

Please note that this comment was generated automatically by
If you feel that this output has mistakes, please open an issue at

All subpackages of a package against which this bug was filled are now installable or removed from Fedora 39.

Thanks for taking care of it!

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