Replace __builtin__ with six.moves.builtins

Python 3: Fix basic py3 issues.

TrivialFix.

Change-Id: Ibe5cad2e27ef7174bf3f0d17b0814fd881251b39
This commit is contained in:
qinchunhua 2016-07-21 23:49:07 -04:00 committed by mark mcclain
parent 59e25b504d
commit 9eaa071cb0
1 changed files with 1 additions and 1 deletions

View File

@ -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')