launchpad-dev team mailing list archive
-
launchpad-dev team
-
Mailing list archive
-
Message #05846
"cannot import name LPModerate"
In a branch that recently merged lp:launchpad/devel, after doing
update-source code; make clean; make; I get the error below.
To me, it does seem reasonable that it fails because there are no
symbols defined in lib/mailman/Mailman/Handlers/__init__.py, it's just
a placeholder. Perhaps it is counting on some other code to poke
something into it and this creates an ordering dependency in the
tests?
I see there is
./lib/lp/services/mailman/monkeypatches/__init__.py:
('LPModerate', 'lpmoderate'),
and probably these tests depend on the monkeypatches happening first
in the same python process?
--
Martin
mbp@lp-lucid% ./bin/test -t mail
Test-module import failures:
Module: lp.services.mailman.tests.test_lpmoderate
Traceback (most recent call last):
File "/home/mbp/launchpad/lp-branches/work/lib/lp/scripts/utilities/importfascist.py",
line 190, in import_fascist
module = original_import(name, globals, locals, fromlist, level)
File "/home/mbp/launchpad/lp-branches/work/lib/lp/services/mailman/tests/test_lpmoderate.py",
line 9, in <module>
from Mailman.Handlers import LPModerate
ImportError: cannot import name LPModerate
Module: lp.services.mailman.tests.test_mailman
Traceback (most recent call last):
File "/home/mbp/launchpad/lp-branches/work/lib/lp/scripts/utilities/importfascist.py",
line 190, in import_fascist
module = original_import(name, globals, locals, fromlist, level)
File "/home/mbp/launchpad/lp-branches/work/lib/lp/services/mailman/tests/test_mailman.py",
line 28, in <module>
from lp.services.mailman.testing import helpers
File "/home/mbp/launchpad/lp-branches/work/lib/lp/scripts/utilities/importfascist.py",
line 190, in import_fascist
module = original_import(name, globals, locals, fromlist, level)
File "/home/mbp/launchpad/lp-branches/work/lib/lp/services/mailman/testing/__init__.py",
line 19, in <module>
from Mailman.Queue import XMLRPCRunner
ImportError: cannot import name XMLRPCRunner
Follow ups