Merge "Python 3: do not use __builtin__"
This commit is contained in:
commit
e43c0f2b9b
@ -139,7 +139,7 @@ class TestImageCreate(TestImage):
|
|||||||
self.assertEqual(image_fakes.IMAGE_columns, columns)
|
self.assertEqual(image_fakes.IMAGE_columns, columns)
|
||||||
self.assertEqual(image_fakes.IMAGE_data, data)
|
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):
|
def test_image_create_file(self, open_mock):
|
||||||
mock_exception = {
|
mock_exception = {
|
||||||
'find.side_effect': exceptions.CommandError('x'),
|
'find.side_effect': exceptions.CommandError('x'),
|
||||||
|
Loading…
Reference in New Issue
Block a user