Bug fix lp:824706

Added gettext support in glance/tests/__init__.py

Change-Id: I1c52e4e98fc3b24ff077ae1cda880aebc7b5ea00
This commit is contained in:
Justin Shepherd 2011-08-13 14:07:38 -05:00
parent c451de83b9
commit 7f058d7c50

View File

@ -14,3 +14,8 @@
# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
# License for the specific language governing permissions and limitations
# under the License.
# 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)