Python 3: do not use __builtin__
Use six.moves.builtins instead, this works with both Python 2 and 3. Change-Id: I57e7257d4f06c805f26383e0778ad104d50ea139
This commit is contained in:
parent
ddf0c16a10
commit
169587ddbd
@ -139,7 +139,7 @@ class TestImageCreate(TestImage):
|
||||
self.assertEqual(image_fakes.IMAGE_columns, columns)
|
||||
self.assertEqual(image_fakes.IMAGE_data, data)
|
||||
|
||||
@mock.patch('__builtin__.open')
|
||||
@mock.patch('six.moves.builtins.open')
|
||||
def test_image_create_file(self, open_mock):
|
||||
mock_exception = {
|
||||
'find.side_effect': exceptions.CommandError('x'),
|
||||
|
Loading…
Reference in New Issue
Block a user