Package: python3-dbusmock
Version: 0.24.0-1
Severity: important
While running unit tests for mutter 41:
――――――――――――――――――――――――――――――――――――― ✀ ―――――――――――――――――――――――――――――――――――――
Traceback (most recent call last):
File "/<<PKGBUILDDIR>>/src/tests/meta-dbus-runner.py", line 122, in <module>
MutterDBusTestCase.setUpClass()
File "/<<PKGBUILDDIR>>/src/tests/meta-dbus-runner.py", line 38, in setUpClass
(klass.mocks_manager, klass.mock_obj) = klass.start_from_local_template(
File "/<<PKGBUILDDIR>>/src/tests/meta-dbus-runner.py", line 76, in
start_from_local_template
return klass.start_from_template(template, params)
File "/<<PKGBUILDDIR>>/src/tests/meta-dbus-runner.py", line 64, in
start_from_template
klass.spawn_server_template(template,
File "/usr/lib/python3/dist-packages/dbusmock/testcase.py", line 231, in
spawn_server_template
module = load_module(template)
File "/usr/lib/python3/dist-packages/dbusmock/mockobject.py", line 46, in
load_module
spec =
importlib.util.spec_from_file_location(os.path.splitext(os.path.basename(name))[0],
name)
AttributeError: module 'importlib' has no attribute 'util'
――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――
It looks as though when importing templates using filenames ending with .py,
as in mutter 41 upstream, dbusmock.mockobject assumes that "import importlib"
is enough to also get importlib.util imported. In python3.9_3.9.2-3, that
does not appear to be the case.
Workaround: add "import importlib" and "import importlib.util" to the
importing test script.
-- System Information:
Debian Release: bookworm/sid
APT prefers unstable-debug
APT policy: (500, 'unstable-debug'), (500, 'stable-security'), (500,
'oldstable-debug'), (500, 'oldoldstable'), (500, 'buildd-unstable'), (500,
'unstable'), (500, 'stable'), (500, 'oldstable'), (1, 'experimental-debug'),
(1, 'buildd-experimental'), (1, 'experimental')
Architecture: amd64 (x86_64)
Foreign Architectures: i386
Kernel: Linux 5.10.0-8-amd64 (SMP w/4 CPU threads)
Locale: LANG=en_GB.utf8, LC_CTYPE=en_GB.utf8 (charmap=UTF-8), LANGUAGE=en_GB:en
Shell: /bin/sh linked to /bin/dash
Init: systemd (via /run/systemd/system)
LSM: AppArmor: enabled
Versions of packages python3-dbusmock depends on:
ii dbus-x11 1.12.20-2
ii gir1.2-glib-2.0 1.70.0-1
ii python3 3.9.2-3
ii python3-dbus 1.2.18-3
ii python3-gi 3.40.1-2
python3-dbusmock recommends no packages.
python3-dbusmock suggests no packages.
-- no debconf information