test failures in release oslo-config-1.4.0; FAILED (id=x, failures=5)
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
oslo.config |
Invalid
|
Undecided
|
Unassigned |
Bug Description
cd to the source and run it manually using testrepoitory; do the testr init first then
/oslo.config-1.4.0 $ PYTHONPATH=. testr run
running=
=======
FAIL: unittest.
tags: worker-0
-------
Traceback (most recent call last):
ImportError: Failed to import test module: tests.test_cfg
Traceback (most recent call last):
File "/usr/lib64/
module = self._get_
File "/usr/lib64/
__import_
File "tests/
class CliOptsTestCase
File "tests/
IPv4Opt = functools.
AttributeError: 'module' object has no attribute 'IPOpt'
=======
FAIL: unittest.
tags: worker-0
-------
Traceback (most recent call last):
ImportError: Failed to import test module: tests.test_
Traceback (most recent call last):
File "/usr/lib64/
module = self._get_
File "/usr/lib64/
__import_
File "tests/
from oslo.config import cfgfilter
ImportError: cannot import name cfgfilter
=======
FAIL: unittest.
tags: worker-0
-------
Traceback (most recent call last):
ImportError: Failed to import test module: tests.test_fixture
Traceback (most recent call last):
File "/usr/lib64/
module = self._get_
File "/usr/lib64/
__import_
File "tests/
from oslo.config import fixture as config
ImportError: cannot import name fixture
=======
FAIL: unittest.
tags: worker-0
-------
Traceback (most recent call last):
ImportError: Failed to import test module: tests.test_
Traceback (most recent call last):
File "/usr/lib64/
module = self._get_
File "/usr/lib64/
__import_
File "tests/
from oslo.config import fixture as config_fixture
ImportError: cannot import name fixture
=======
FAIL: unittest.
tags: worker-0
-------
Traceback (most recent call last):
ImportError: Failed to import test module: tests.test_types
Traceback (most recent call last):
File "/usr/lib64/
module = self._get_
File "/usr/lib64/
__import_
File "tests/
class IPAddressTypeTe
File "tests/
type = types.IPAddress()
AttributeError: 'module' object has no attribute 'IPAddress'
Ran 22 tests in 0.005s (-0.000s)
FAILED (id=5, failures=5)
without fail, excuse the pun, these occur subsequent to the tests being seemingly unable to import its own core classes or modules in oslo.config. No idea how or why but they don't import.
The first;
oslo.config-1.4.0 $ PYTHONPATH=. python -c "from oslo.config.cfg import IPOpt"
yields
Traceback (most recent call last):
File "<string>", line 1, in <module>
ImportError: cannot import name IPOpt
oslo.config-1.4.0 $ PYTHONPATH=. python -c "from oslo.config import cfgfilter"
yields
Traceback (most recent call last):
File "<string>", line 1, in <module>
ImportError: cannot import name cfgfilter
through to
PYTHONPATH=. python -c "from oslo.config.types import IPAddress"
yields
Traceback (most recent call last):
File "<string>", line 1, in <module>
ImportError: cannot import name IPAddress
whereas attempt to import another class from oslo/config/
/oslo.config-1.4.0 $ PYTHONPATH=. python -c "from oslo.config.types import Integer" OR Float
happily import.
Now this is the part that has me most puzzled. This holds for py2.7 Make eselected system python 3.3 and it passes fine. It's 'always' the other way around.
We generally expect the tests to run through tox, not directly. I suspect tox is doing something extra to prepare the egg for oslo.config, which configures the namespace package to the code will import properly. Can you use tox to run the tests?