nova/tests/test_iptables_network.py imports IPy, but tools/pip-requires does not install IPy
Bug #804364 reported by
Justin Shepherd
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
OpenStack Compute (nova) |
New
|
Undecided
|
Unassigned |
Bug Description
$ grep IPy nova/tests/
import IPy
$ grep IPy tools/pip-requires
$
=====
However, if the import IPy line is commented out, the tests appear to run successfully:
$ python run_tests.py nova.tests.
IptablesManager
test_
test_
test_nat_rules OK 0.00
-------
Ran 3 tests in 0.303s
OK
To post a comment you must log in.
Sorry.. forgot to include the original error:
$ python run_tests.py nova.tests. test_iptables_ network
Failure
runTest ERROR
======= ======= ======= ======= ======= ======= ======= ======= ======= ======= network' ) ------- ------- ------- ------- ------- ------- ------- ------- ------- bzr/nova/ test/.nova- venv/lib/ python2. 6/site- packages/ nose/loader. py", line 379, in loadTestsFromName name(addr. module) bzr/nova/ test/.nova- venv/lib/ python2. 6/site- packages/ nose/util. py", line 331, in resolve_name network'
ERROR: Failure: AttributeError ('module' object has no attribute 'test_iptables_
-------
Traceback (most recent call last):
File "/Projects/
module = resolve_
File "/Projects/
obj = getattr(obj, part)
AttributeError: 'module' object has no attribute 'test_iptables_
------- ------- ------- ------- ------- ------- ------- ------- ------- -------
Ran 1 test in 0.001s
FAILED (errors=1)