Public bug reported:
I get the following traceback when trying to run tests from master:
Failed to import test module: keystone.tests.unit.test_sql_upgrade
Traceback (most recent call last):
File
"/opt/stack/keystone.old/.tox/py27/local/lib/python2.7/site-packages/unittest2/loader.py",
line 456, in _find_test_path
module = self._get_module_from_name(name)
File
"/opt/stack/keystone.old/.tox/py27/local/lib/python2.7/site-packages/unittest2/loader.py",
line 395, in _get_module_from_name
__import__(name)
File "keystone/tests/unit/test_sql_upgrade.py", line 42, in <module>
from oslo_db.sqlalchemy import test_base
File
"/opt/stack/keystone.old/.tox/py27/local/lib/python2.7/site-packages/oslo_db/sqlalchemy/test_base.py",
line 17, in <module>
import testresources
ImportError: No module named testresources
The test run didn't actually run any tests
Explicitly requiring testresources for tests fixes the issue.
** Affects: keystone
Importance: Undecided
Assignee: David Stanek (dstanek)
Status: In Progress
--
You received this bug notification because you are a member of Yahoo!
Engineering Team, which is subscribed to OpenStack Identity (keystone).
https://bugs.launchpad.net/bugs/1572202
Title:
testresources needs to be explicitly required for tests
Status in OpenStack Identity (keystone):
In Progress
Bug description:
I get the following traceback when trying to run tests from master:
Failed to import test module: keystone.tests.unit.test_sql_upgrade
Traceback (most recent call last):
File
"/opt/stack/keystone.old/.tox/py27/local/lib/python2.7/site-packages/unittest2/loader.py",
line 456, in _find_test_path
module = self._get_module_from_name(name)
File
"/opt/stack/keystone.old/.tox/py27/local/lib/python2.7/site-packages/unittest2/loader.py",
line 395, in _get_module_from_name
__import__(name)
File "keystone/tests/unit/test_sql_upgrade.py", line 42, in <module>
from oslo_db.sqlalchemy import test_base
File
"/opt/stack/keystone.old/.tox/py27/local/lib/python2.7/site-packages/oslo_db/sqlalchemy/test_base.py",
line 17, in <module>
import testresources
ImportError: No module named testresources
The test run didn't actually run any tests
Explicitly requiring testresources for tests fixes the issue.
To manage notifications about this bug go to:
https://bugs.launchpad.net/keystone/+bug/1572202/+subscriptions
--
Mailing list: https://launchpad.net/~yahoo-eng-team
Post to : [email protected]
Unsubscribe : https://launchpad.net/~yahoo-eng-team
More help : https://help.launchpad.net/ListHelp