[Bug 2046363] Re: FTBFS against python 3.11.7 due to use of module "meant for internal use by Python only"
Dan Bungert
2046363 at bugs.launchpad.net
Wed Dec 13 18:28:00 UTC 2023
** Changed in: ubiquity (Ubuntu)
Status: New => Fix Committed
--
You received this bug notification because you are a member of Ubuntu
Foundations Bugs, which is subscribed to ubiquity in Ubuntu.
https://bugs.launchpad.net/bugs/2046363
Title:
FTBFS against python 3.11.7 due to use of module "meant for internal
use by Python only"
Status in ubiquity package in Ubuntu:
Fix Committed
Bug description:
Attempting to build ubiquity on noble fails like so:
+======================================================================
+ERROR: test_ubi_partman (unittest.loader._FailedTest.test_ubi_partman)
+----------------------------------------------------------------------
+ImportError: Failed to import test module: test_ubi_partman
+Traceback (most recent call last):
+ File "/usr/lib/python3.11/unittest/loader.py", line 162, in loadTestsFromName
+ module = __import__(module_name)
+ ^^^^^^^^^^^^^^^^^^^^^^^
+ File "/tmp/autopkgtest.NpvRQz/build.mFW/src/tests/test_ubi_partman.py", line 5, in <module>
+ from test.support import run_unittest
+ImportError: cannot import name 'run_unittest' from 'test.support' (/usr/lib/python3.11/test/support/__init__.py)
The test module has the following note:
Note
The test package is meant for internal use by Python only. It is documented for the benefit of the core developers of Python. Any use of this package outside of Python’s standard library is discouraged as code mentioned here can change or be removed without notice between releases of Python.
run_unittest is no longer offered by test.support, so this is a
Ubiquity bug for using this internal-use only module.
For the purposes of Ubuntu Noble, this change appears as of python
3.11.7.
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/ubiquity/+bug/2046363/+subscriptions
More information about the foundations-bugs
mailing list