Override mox in sys.modules to mox3 in a py3 env

partial blueprint heat-python34-support

Change-Id: Iabb0435254ce07163f979160b312fc0e5d9e8a97
This commit is contained in:
Sirushti Murugesan 2015-06-29 09:05:33 +05:30
parent d53ac685d5
commit cdfcd61a1d
4 changed files with 22 additions and 0 deletions

View File

@ -0,0 +1,7 @@
import six
if six.PY3:
from mox3 import mox
import sys
sys.modules['mox'] = mox

View File

@ -0,0 +1,7 @@
import six
if six.PY3:
from mox3 import mox
import sys
sys.modules['mox'] = mox

View File

@ -12,6 +12,13 @@
# under the License.
import oslo_i18n as i18n
import six
if six.PY3:
from mox3 import mox
import sys
sys.modules['mox'] = mox
def fake_translate_msgid(msgid, domain, desired_locale=None):

View File

@ -8,6 +8,7 @@ coverage>=3.6
discover
mock>=1.0
mox>=0.5.3
mox3>=0.7.0
PyMySQL>=0.6.2 # MIT License
oslosphinx>=2.5.0 # Apache-2.0
oslotest>=1.5.1 # Apache-2.0