Test ERROR: unittest.loader._FailedTest.breezy.plugins.launchpad

Bug #1849988 reported by Olaf Seibert on 2019-10-26
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Breezy
High
Jelmer Vernooij

Bug Description

This test unittest.loader._FailedTest.breezy.plugins.launchpad
errors with ModuleNotFoundError: No module named 'launchpadlib'
even though the module is optional.

Verbose output:

running 1 tests...
brz selftest: /home/tmp/devel/breezy/work.x86_64/breezy-3.0.1/brz
   /home/tmp/devel/breezy/work.x86_64/breezy-3.0.1/breezy
   bzr-3.0.1 python-3.7.4 NetBSD-8.1-amd64-x86_64-64bit-ELF

unittest.loader._FailedTest.breezy.plugins.launchpad ERROR 5ms
    launchpadlib is required for Launchpad API access. Please install the launchpadlib package.
======================================================================
ERROR: unittest.loader._FailedTest.breezy.plugins.launchpad
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/home/tmp/devel/breezy/work.x86_64/breezy-3.0.1/breezy/plugins/launchpad/lp_api.py", line 59, in <module>
    import launchpadlib
ModuleNotFoundError: No module named 'launchpadlib'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/tmp/devel/breezy/work.x86_64/breezy-3.0.1/breezy/plugins/launchpad/__init__.py", line 101, in load_tests
    ["%s.%s" % (__name__, tmn) for tmn in testmod_names]))
  File "/home/tmp/devel/breezy/work.x86_64/breezy-3.0.1/breezy/tests/TestUtil.py", line 147, in loadTestsFromModuleNames
    result.addTests(self.loadTestsFromModuleName(name))
  File "/home/tmp/devel/breezy/work.x86_64/breezy-3.0.1/breezy/tests/TestUtil.py", line 152, in loadTestsFromModuleName
    module = pyutils.get_named_object(name)
  File "/home/tmp/devel/breezy/work.x86_64/breezy-3.0.1/breezy/pyutils.py", line 58, in get_named_object
    __import__(module_name, globals(), locals(), [])
  File "/home/tmp/devel/breezy/work.x86_64/breezy-3.0.1/breezy/plugins/launchpad/test_register.py", line 34, in <module>
    from .lp_registration import (
  File "/home/tmp/devel/breezy/work.x86_64/breezy-3.0.1/breezy/plugins/launchpad/lp_registration.py", line 51, in <module>
    from .lp_api import (
  File "/home/tmp/devel/breezy/work.x86_64/breezy-3.0.1/breezy/plugins/launchpad/lp_api.py", line 61, in <module>
    raise LaunchpadlibMissing(e)
breezy.plugins.launchpad.lp_api.LaunchpadlibMissing: launchpadlib is required for Launchpad API access. Please install the launchpadlib package.
----------------------------------------------------------------------
Ran 1 test in 0.025s

FAILED (errors=1)

Related branches

Jelmer Vernooij (jelmer) on 2019-10-27
Changed in brz:
assignee: nobody → Jelmer Vernooij (jelmer)
milestone: none → 3.0.2
status: New → In Progress
importance: Undecided → High
status: In Progress → Fix Committed
Vincent Ladeuil (vila) on 2019-11-19
Changed in brz:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers