Your message dated Fri, 5 Nov 2021 15:04:31 +0000
with message-id <YYVH//[email protected]>
and subject line Re: Bug#994806: python3-dbusmock: assumes importlib.util has 
been imported
has caused the Debian Bug report #994806,
regarding python3-dbusmock: assumes importlib.util has been imported
to be marked as done.

This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.

(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact [email protected]
immediately.)


-- 
994806: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=994806
Debian Bug Tracking System
Contact [email protected] with problems
--- Begin Message ---
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

--- End Message ---
--- Begin Message ---
Version: 0.24.1-1

On Tue, 21 Sep 2021 at 09:40:48 +0100, Simon McVittie wrote:
> 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.

This appears to have been fixed in 0.24.1-1.

    smcv

--- End Message ---

Reply via email to