summaryrefslogtreecommitdiffstats
path: root/nova
diff options
context:
space:
mode:
authorjaypipes@gmail.com <>2010-12-11 15:10:24 -0500
committerjaypipes@gmail.com <>2010-12-11 15:10:24 -0500
commita6645d8a431ed933eef4ea6c42c0224ead6f2272 (patch)
treeb3229bad833591b2fbea5157cae9d96976c2d62b /nova
parent1a759c3722610d720dd8dabf816db146c1063937 (diff)
Initial i18n commit for endpoints. All endpoints must install
gettext, which injects the _ function into the builtins.
Diffstat (limited to 'nova')
-rw-r--r--nova/tests/__init__.py5
1 files changed, 5 insertions, 0 deletions
diff --git a/nova/tests/__init__.py b/nova/tests/__init__.py
index aaf213923..8dc87d0e2 100644
--- a/nova/tests/__init__.py
+++ b/nova/tests/__init__.py
@@ -29,3 +29,8 @@
.. moduleauthor:: Manish Singh <yosh@gimp.org>
.. moduleauthor:: Andy Smith <andy@anarkystic.com>
"""
+
+# See http://code.google.com/p/python-nose/issues/detail?id=373
+# The code below enables nosetests to work with i18n _() blocks
+import __builtin__
+setattr(__builtin__, '_', lambda x: x)