FTBFS against python 3.11.7 due to use of module "meant for internal use by Python only"
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
ubiquity (Ubuntu) |
Fix Released
|
Undecided
|
Dan Bungert |
Bug Description
Attempting to build ubiquity on noble fails like so:
+======
+ERROR: test_ubi_partman (unittest.
+------
+ImportError: Failed to import test module: test_ubi_partman
+Traceback (most recent call last):
+ File "/usr/lib/
+ module = __import_
+ ^^^^^^^
+ File "/tmp/autopkgte
+ from test.support import run_unittest
+ImportError: cannot import name 'run_unittest' from 'test.support' (/usr/lib/
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.
description: | updated |
Changed in ubiquity (Ubuntu): | |
assignee: | nobody → Dan Bungert (dbungert) |
Changed in ubiquity (Ubuntu): | |
status: | New → Fix Committed |
This bug was fixed in the package ubiquity - 24.04.1
---------------
ubiquity (24.04.1) noble; urgency=medium
* Fix unit tests by discontinuing use of the internal-to-python `test`
module. (LP: #2046363)
-- Dan Bungert <email address hidden> Wed, 13 Dec 2023 11:12:46 -0700