eww. We need jenkinst to run unittests on 2.6 as well so we stop breaking this. On Dec 8, 2011, at 7:55 AM, Lorin Hochstein wrote: > Public bug reported: > > Some unit tests are erroring out on Python 2.6.x because its unittest > doesn't have a skip method: > > To replicate (Python 2.6.6 on RHEL 6.1): > > $ ./run_tests.sh test_cfg > Failure > runTest ERROR > > ====================================================================== > ERROR: Failure: AttributeError ('module' object has no attribute 'skip') > ---------------------------------------------------------------------- > Traceback (most recent call last): > File "/home/lorin/nova/.nova-venv/lib/python2.6/site-packages/nose/loader.py", line 379, in loadTestsFromName > module = resolve_name(addr.module) > File "/home/lorin/nova/.nova-venv/lib/python2.6/site-packages/nose/util.py", line 321, in resolve_name > module = __import__('.'.join(parts_copy)) > File "/home/lorin/nova/nova/tests/test_cfg.py", line 155, in > class ConfigFileOptsTestCase(BaseTestCase): > File "/home/lorin/nova/nova/tests/test_cfg.py", line 340, in ConfigFileOptsTestCase > @unittest.skip('FIXME(markmc): values spread across the CLI and multiple ' > AttributeError: 'module' object has no attribute 'skip' > > ---------------------------------------------------------------------- > Ran 1 test in 0.001s > > FAILED (errors=1) > > ** Affects: nova > Importance: Undecided > Status: New > > -- > You received this bug notification because you are subscribed to > OpenStack Compute (nova). > https://bugs.launchpad.net/bugs/901730 > > Title: > Unit test errors on Python 2.6 > > Status in OpenStack Compute (Nova): > New > > Bug description: > Some unit tests are erroring out on Python 2.6.x because its unittest > doesn't have a skip method: > > To replicate (Python 2.6.6 on RHEL 6.1): > > $ ./run_tests.sh test_cfg > Failure > runTest ERROR > > ====================================================================== > ERROR: Failure: AttributeError ('module' object has no attribute 'skip') > ---------------------------------------------------------------------- > Traceback (most recent call last): > File "/home/lorin/nova/.nova-venv/lib/python2.6/site-packages/nose/loader.py", line 379, in loadTestsFromName > module = resolve_name(addr.module) > File "/home/lorin/nova/.nova-venv/lib/python2.6/site-packages/nose/util.py", line 321, in resolve_name > module = __import__('.'.join(parts_copy)) > File "/home/lorin/nova/nova/tests/test_cfg.py", line 155, in > class ConfigFileOptsTestCase(BaseTestCase): > File "/home/lorin/nova/nova/tests/test_cfg.py", line 340, in ConfigFileOptsTestCase > @unittest.skip('FIXME(markmc): values spread across the CLI and multiple ' > AttributeError: 'module' object has no attribute 'skip' > > ---------------------------------------------------------------------- > Ran 1 test in 0.001s > > FAILED (errors=1) > > To manage notifications about this bug go to: > https://bugs.launchpad.net/nova/+bug/901730/+subscriptions