diff options
| author | Cyril Roelandt <cyril.roelandt@enovance.com> | 2014-07-03 00:27:35 +0200 |
|---|---|---|
| committer | Cyril Roelandt <cyril.roelandt@enovance.com> | 2014-07-03 00:27:35 +0200 |
| commit | 169587ddbd5b67258fe91e6d0428f371b9cf312e (patch) | |
| tree | c6206d956a74993b577604957f1f00d12efc7f28 /openstackclient | |
| parent | ddf0c16a1025524e469b25800e119d9c1da772f6 (diff) | |
| download | python-openstackclient-169587ddbd5b67258fe91e6d0428f371b9cf312e.tar.gz | |
Python 3: do not use __builtin__
Use six.moves.builtins instead, this works with both Python 2 and 3.
Change-Id: I57e7257d4f06c805f26383e0778ad104d50ea139
Diffstat (limited to 'openstackclient')
| -rw-r--r-- | openstackclient/tests/image/v1/test_image.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/openstackclient/tests/image/v1/test_image.py b/openstackclient/tests/image/v1/test_image.py index b746a538..b014482a 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'), |
