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:
parent
5650b7b954
commit
db48e64565
|
@ -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']
|
||||
|
||||
|
|
Loading…
Reference in New Issue