Unit test errors on Python 2.6
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
OpenStack Compute (nova) |
Fix Released
|
Undecided
|
Mark McLoughlin |
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/
module = resolve_
File "/home/
module = __import_
File "/home/
class ConfigFileOptsT
File "/home/
@unittest.
AttributeError: 'module' object has no attribute 'skip'
-------
Ran 1 test in 0.001s
FAILED (errors=1)
Changed in nova: | |
milestone: | none → essex-2 |
status: | Fix Committed → Fix Released |
Changed in nova: | |
milestone: | essex-2 → 2012.1 |
Fixing that is simple enough (replace unittest.skip with test.skip_test), but there's 38 other errors that I think are due to python2.6 compatibility. :(