When debugging fullstack tests, "cmd" module is incorrectly imported
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
neutron |
Fix Released
|
Low
|
Rodolfo Alonso |
Bug Description
When fullstack tests are executed manually with a debugger (e.g.: PyCharm integrated debugger), the "cmd" folder is imported instead of "cmd" [1] module.
To solve this problem, this folder and the references to this path must be changed.
Error received when executing manually a fullstack test:
Traceback (most recent call last):
File "/opt/stack/
main(argv=args, module=None, testRunner=
File "/usr/lib/
self.
File "/usr/lib/
self.
File "/usr/lib/
self.module)
File "/usr/lib/
suites = [self.loadTests
File "/usr/lib/
module = __import_
File "/opt/stack/
import testscenarios
File "/usr/local/
from testscenarios.
File "/usr/local/
from testtools.testcase import clone_test_
File "/usr/local/
from testtools.
File "/usr/local/
from ._doctest import (
File "/usr/local/
import doctest
File "/usr/lib/
import unittest, difflib, pdb, tempfile
File "/usr/lib/
class Pdb(bdb.Bdb, cmd.Cmd):
AttributeError: 'module' object has no attribute 'Cmd'
Changed in neutron: | |
assignee: | nobody → Rodolfo Alonso (rodolfo-alonso-hernandez) |
description: | updated |
Changed in neutron: | |
importance: | Undecided → Low |
Fix proposed to branch: master /review. openstack. org/620916
Review: https:/