nova/tests/test_iptables_network.py imports IPy, but tools/pip-requires does not install IPy

Bug #804364 reported by Justin Shepherd
This bug report is a duplicate of:  Bug #804363: IPy import causes tests to fail. Edit Remove
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
OpenStack Compute (nova)
New
Undecided
Unassigned

Bug Description

$ grep IPy nova/tests/test_iptables_network.py
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.test_iptables_network
IptablesManagerTestCase
    test_filter_rules OK 0.11
    test_filter_rules_are_wrapped OK 0.00
    test_nat_rules OK 0.00

----------------------------------------------------------------------
Ran 3 tests in 0.303s

OK

Revision history for this message
Justin Shepherd (jshepher) wrote :

Sorry.. forgot to include the original error:

$ python run_tests.py nova.tests.test_iptables_network
Failure
    runTest ERROR

======================================================================
ERROR: Failure: AttributeError ('module' object has no attribute 'test_iptables_network')
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/Projects/bzr/nova/test/.nova-venv/lib/python2.6/site-packages/nose/loader.py", line 379, in loadTestsFromName
    module = resolve_name(addr.module)
  File "/Projects/bzr/nova/test/.nova-venv/lib/python2.6/site-packages/nose/util.py", line 331, in resolve_name
    obj = getattr(obj, part)
AttributeError: 'module' object has no attribute 'test_iptables_network'

----------------------------------------------------------------------
Ran 1 test in 0.001s

FAILED (errors=1)

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.