Replace __builtin__ with six.moves.builtins
Python 3: Fix basic py3 issues. TrivialFix. Change-Id: Ibe5cad2e27ef7174bf3f0d17b0814fd881251b39
This commit is contained in:
parent
59e25b504d
commit
9eaa071cb0
|
@ -112,7 +112,7 @@ class TestAstaraClient(unittest.TestCase):
|
|||
rules_dict = {'labels': {}, 'preanchors': [], 'postanchors': []}
|
||||
with mock.patch('oslo_serialization.jsonutils.load') as load:
|
||||
load.return_value = rules_dict
|
||||
with mock.patch('__builtin__.open') as mock_open:
|
||||
with mock.patch('six.moves.builtins.open') as mock_open:
|
||||
r = conf_mod.load_provider_rules('/the/path')
|
||||
|
||||
mock_open.assert_called_once_with('/the/path')
|
||||
|
|
Loading…
Reference in New Issue