py34: update tests/unit/__init__.py

Change-Id: Idf16d0360eefd255a08c83de708c6630ee7d9641
This commit is contained in:
Andrey Pavlov 2015-09-09 16:50:39 +03:00
parent 2205684915
commit f78dc82ff8
1 changed files with 2 additions and 2 deletions

View File

@ -22,8 +22,8 @@
# 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)
from six.moves import builtins
setattr(builtins, '_', lambda x: x)
# NOTE(ft): this is required by test_s3.S3APITestCase to switch execution
# between test and server threads