unit tests fail because site packages are used
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
oslo-incubator |
Fix Released
|
High
|
Mark McLoughlin | ||
Grizzly |
Fix Released
|
High
|
Mark McLoughlin |
Bug Description
On my machine at least, if I check out oslo-incubator and do:
$> tox
I get:
WARNING:test command found but not installed in testenv
..
ERROR: Failure: ImportError (No module named mock)
-------
Traceback (most recent call last):
File "/usr/lib/
addr.filename, addr.module)
File "/usr/lib/
return self.importFrom
File "/usr/lib/
mod = load_module(
File "/home/
import mock
ImportError: No module named mock
this fixes it:
$> bash -c '. .tox/py27/
I suspect tox being configured with sitepackages=True is the issue
Changed in oslo: | |
status: | In Progress → Fix Committed |
Changed in oslo: | |
milestone: | none → grizzly-2 |
status: | Fix Committed → Fix Released |
https:/ /review. openstack. org/16752