hard to get hold of actual error when testrepository itself fails
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Testrepository |
Triaged
|
Wishlist
|
Unassigned |
Bug Description
testrepository unhelpfully reports "Could not import command module testrepository.
Traceback (most recent call last):
File "/home/
sys.
File "/home/
cmdclass = _find_command(
File "/home/
raise KeyError("Could not import command module %s" % modname)
KeyError: 'Could not import command module testrepository.
This in fact happened to be a testtools compatibility issue, which shows when I comment out the exeption handler in __init__.py line 53:
Traceback (most recent call last):
File "/home/
sys.
File "/home/
cmdclass = _find_command(
File "/home/
_temp = __import__(modname, globals(), locals(), [classname])
File "/home/
from testrepository.
File "/home/
from testtools import ConcurrentTestS
ImportError: cannot import name Tagger
TESTR_PDB=1
would let you debug that without commenting out the exception handler.