Use six.moves.reload_module instead of builltin reload

reload module is moved to importlib from python3.4.

Partially-Implements: blueprint magnum-python3

Change-Id: I75da0a70cbeaa360f124158e1052302d3cb8a2a4
This commit is contained in:
Yang Hongyang 2016-02-27 15:16:13 +08:00
parent 5650b7b954
commit db48e64565
1 changed files with 2 additions and 2 deletions

View File

@ -281,7 +281,7 @@ class TestValidation(base.BaseTestCase):
# Reload the validator module so that baymodel configs are
# re-evaluated.
reload(v)
reload_module(v)
validator = v.K8sValidator
validator.supported_network_drivers = ['flannel', 'type1', 'type2']
@ -373,7 +373,7 @@ class TestValidation(base.BaseTestCase):
# Reload the validator module so that baymodel configs are
# re-evaluated.
reload(v)
reload_module(v)
validator = v.K8sValidator
validator.supported_volume_driver = ['cinder']