From 169587ddbd5b67258fe91e6d0428f371b9cf312e Mon Sep 17 00:00:00 2001 From: Cyril Roelandt Date: Thu, 3 Jul 2014 00:27:35 +0200 Subject: [PATCH] Python 3: do not use __builtin__ Use six.moves.builtins instead, this works with both Python 2 and 3. Change-Id: I57e7257d4f06c805f26383e0778ad104d50ea139 --- openstackclient/tests/image/v1/test_image.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/openstackclient/tests/image/v1/test_image.py b/openstackclient/tests/image/v1/test_image.py index b746a5382a..b014482a84 100644 --- a/openstackclient/tests/image/v1/test_image.py +++ b/openstackclient/tests/image/v1/test_image.py @@ -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'),