Override mox in sys.modules to mox3 in a py3 env
partial blueprint heat-python34-support Change-Id: Iabb0435254ce07163f979160b312fc0e5d9e8a97
This commit is contained in:
parent
d53ac685d5
commit
cdfcd61a1d
@ -0,0 +1,7 @@
|
|||||||
|
import six
|
||||||
|
|
||||||
|
|
||||||
|
if six.PY3:
|
||||||
|
from mox3 import mox
|
||||||
|
import sys
|
||||||
|
sys.modules['mox'] = mox
|
@ -0,0 +1,7 @@
|
|||||||
|
import six
|
||||||
|
|
||||||
|
|
||||||
|
if six.PY3:
|
||||||
|
from mox3 import mox
|
||||||
|
import sys
|
||||||
|
sys.modules['mox'] = mox
|
@ -12,6 +12,13 @@
|
|||||||
# under the License.
|
# under the License.
|
||||||
|
|
||||||
import oslo_i18n as i18n
|
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):
|
def fake_translate_msgid(msgid, domain, desired_locale=None):
|
||||||
|
@ -8,6 +8,7 @@ coverage>=3.6
|
|||||||
discover
|
discover
|
||||||
mock>=1.0
|
mock>=1.0
|
||||||
mox>=0.5.3
|
mox>=0.5.3
|
||||||
|
mox3>=0.7.0
|
||||||
PyMySQL>=0.6.2 # MIT License
|
PyMySQL>=0.6.2 # MIT License
|
||||||
oslosphinx>=2.5.0 # Apache-2.0
|
oslosphinx>=2.5.0 # Apache-2.0
|
||||||
oslotest>=1.5.1 # Apache-2.0
|
oslotest>=1.5.1 # Apache-2.0
|
||||||
|
Loading…
Reference in New Issue
Block a user