[Bug 2003970] Re: Autopkgtest regression in python3.11
Launchpad Bug Tracker
2003970 at bugs.launchpad.net
Sat Jan 28 22:11:04 UTC 2023
This bug was fixed in the package ubiquity - 23.04.4
---------------
ubiquity (23.04.4) lunar; urgency=medium
* mktemplates.base: add more logging to ease diagnosis for failed
builds
-- Olivier Gayot <olivier.gayot at canonical.com> Fri, 27 Jan 2023
07:47:28 -0800
** Changed in: ubiquity (Ubuntu)
Status: Confirmed => Fix Released
--
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/2003970
Title:
Autopkgtest regression in python3.11
Status in ubiquity package in Ubuntu:
Fix Released
Bug description:
Autopkgtest fails with Python 3.11 with the following exception:
ERROR: test_set_gnome_keyboard_layout_to_existing_layout (test_ubi_console_setup.TestPage.test_set_gnome_keyboard_layout_to_existing_layout)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/usr/lib/python3.11/unittest/mock.py", line 1366, in patched
with self.decoration_helper(patched,
File "/usr/lib/python3.11/contextlib.py", line 137, in __enter__
return next(self.gen)
^^^^^^^^^^^^^^
File "/usr/lib/python3.11/unittest/mock.py", line 1348, in decoration_helper
arg = exit_stack.enter_context(patching)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/lib/python3.11/contextlib.py", line 502, in enter_context
result = _enter(cm)
^^^^^^^^^^
File "/usr/lib/python3.11/unittest/mock.py", line 1421, in __enter__
self.target = self.getter()
^^^^^^^^^^^^^
File "/usr/lib/python3.11/pkgutil.py", line 688, in resolve_name
raise ValueError(f'invalid format: {name!r}')
ValueError: invalid format: 'ubi-console-setup.gsettings'
Since Python3.11, unittest.mock uses pkgutil.resolve_name which only
accepts valid python module identifiers.
The change was introduced as part of:
* github issue: https://github.com/python/cpython/issues/88852
* github PR: https://github.com/python/cpython/pull/18544
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/ubiquity/+bug/2003970/+subscriptions
More information about the foundations-bugs
mailing list