Skip to content

Commit 169587d

Browse files
Python 3: do not use __builtin__
Use six.moves.builtins instead, this works with both Python 2 and 3. Change-Id: I57e7257d4f06c805f26383e0778ad104d50ea139
1 parent ddf0c16 commit 169587d

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

openstackclient/tests/image/v1/test_image.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -139,7 +139,7 @@ def test_image_reserve_options(self):
139139
self.assertEqual(image_fakes.IMAGE_columns, columns)
140140
self.assertEqual(image_fakes.IMAGE_data, data)
141141

142-
@mock.patch('__builtin__.open')
142+
@mock.patch('six.moves.builtins.open')
143143
def test_image_create_file(self, open_mock):
144144
mock_exception = {
145145
'find.side_effect': exceptions.CommandError('x'),

0 commit comments

Comments
 (0)