yahoo-eng-team team mailing list archive
-
yahoo-eng-team team
-
Mailing list archive
-
Message #08622
[Bug 1255518] Re: name '_' is not defined, under nosetests.
** Changed in: keystone
Status: Fix Committed => Fix Released
** Changed in: keystone
Milestone: None => icehouse-2
--
You received this bug notification because you are a member of Yahoo!
Engineering Team, which is subscribed to Keystone.
https://bugs.launchpad.net/bugs/1255518
Title:
name '_' is not defined, under nosetests.
Status in OpenStack Identity (Keystone):
Fix Released
Bug description:
When I start keystone unit tests under `nosetests` it is falls with an
error:
NameError: name '_' is not defined
Due to deprecating implicit `_` import, explicit `_` become necessary
. But obvious it is done not everywhere.
(git::master)nosetests -xs
E
======================================================================
ERROR: Failure: NameError (name '_' is not defined)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/ipekelny/workspace/keystone/.tox/py26/lib/python2.6/site-packages/nose/loader.py", line 413, in loadTestsFromName
addr.filename, addr.module)
File "/home/ipekelny/workspace/keystone/.tox/py26/lib/python2.6/site-packages/nose/importer.py", line 47, in importFromPath
return self.importFromDir(dir_path, fqname)
File "/home/ipekelny/workspace/keystone/.tox/py26/lib/python2.6/site-packages/nose/importer.py", line 94, in importFromDir
mod = load_module(part_fqname, fh, filename, desc)
File "/home/ipekelny/workspace/keystone/keystone/assignment/__init__.py", line 18, in <module>
from keystone.assignment.core import *
File "/home/ipekelny/workspace/keystone/keystone/assignment/core.py", line 23, in <module>
from keystone import clean
File "/home/ipekelny/workspace/keystone/keystone/clean.py", line 17, in <module>
from keystone import exception
File "/home/ipekelny/workspace/keystone/keystone/exception.py", line 63, in <module>
class ValidationError(Error):
File "/home/ipekelny/workspace/keystone/keystone/exception.py", line 64, in ValidationError
message_format = _("Expecting to find %(attribute)s in %(target)s."
NameError: name '_' is not defined
-------------------- >> begin captured logging << --------------------
keystone.common.environment: INFO: Environment configured as: eventlet
--------------------- >> end captured logging << ---------------------
----------------------------------------------------------------------
To manage notifications about this bug go to:
https://bugs.launchpad.net/keystone/+bug/1255518/+subscriptions