← Back to team overview

yahoo-eng-team team mailing list archive

[Bug 1572202] Re: testresources needs to be explicitly required for tests

 

bumping tox and global requirements fixed this issue

** Changed in: keystone
       Status: Triaged => Fix Released

** Changed in: keystone
    Milestone: None => newton-1

-- 
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):
  Fix Released

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


References