← Back to team overview

yahoo-eng-team team mailing list archive

[Bug 1152326] Re: __init__.py in tests directory breaks running individual tests

 

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

** Changed in: keystone
    Milestone: None => grizzly-rc1

-- 
You received this bug notification because you are a member of Yahoo!
Engineering Team, which is subscribed to Keystone.
https://bugs.launchpad.net/bugs/1152326

Title:
  __init__.py in tests directory breaks running individual tests

Status in OpenStack Identity (Keystone):
  Fix Released

Bug description:
  [ayoung@ayoung530 keystone (token-cleanup)]$ ./run_tests.sh test_v3_auth
  Failure: ImportError (No module named test_v3) ... ERROR

  ======================================================================
  ERROR: Failure: ImportError (No module named test_v3)
  ----------------------------------------------------------------------
  Traceback (most recent call last):
    File "/opt/stack/keystone/.venv/lib/python2.7/site-packages/nose/loader.py", line 390, in loadTestsFromName
      addr.filename, addr.module)
    File "/opt/stack/keystone/.venv/lib/python2.7/site-packages/nose/importer.py", line 39, in importFromPath
      return self.importFromDir(dir_path, fqname)
    File "/opt/stack/keystone/.venv/lib/python2.7/site-packages/nose/importer.py", line 86, in importFromDir
      mod = load_module(part_fqname, fh, filename, desc)
    File "/opt/stack/keystone/tests/test_v3_auth.py", line 24, in <module>
      import test_v3
  ImportError: No module named test_v3
  -------------------- >> begin captured logging << --------------------
  keystone.auth.controllers: WARNING: duplicate option: password
  keystone.auth.controllers: WARNING: duplicate option: token
  --------------------- >> end captured logging << ---------------------

  ----------------------------------------------------------------------
  Ran 1 test in 0.001s

  FAILED (errors=1)

  
  Deleting the __init__.py file fixes this.

To manage notifications about this bug go to:
https://bugs.launchpad.net/keystone/+bug/1152326/+subscriptions