diff options
author | Cédric Ollivier <cedric.ollivier@orange.com> | 2017-12-11 13:44:42 +0100 |
---|---|---|
committer | Cédric Ollivier <cedric.ollivier@orange.com> | 2017-12-12 05:03:45 +0100 |
commit | df6ee9b1222ebd81fa22ce3499e536abe7bcb05e (patch) | |
tree | 2517662ac546431a93f7c1aee1070bf55c7b29f2 /functest/tests/unit/utils/test_openstack_clean.py | |
parent | 41a81e7f5ca5d3733e6e5655f5ece7859ce9f49b (diff) |
Add python3 for Functest utils
It also fixes test_utils RegexMatch and SubstrMatch.
Change-Id: I124aa7d0c4110dcd2f50220aae7ba9b299799e93
Signed-off-by: Cédric Ollivier <cedric.ollivier@orange.com>
Diffstat (limited to 'functest/tests/unit/utils/test_openstack_clean.py')
-rw-r--r-- | functest/tests/unit/utils/test_openstack_clean.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/functest/tests/unit/utils/test_openstack_clean.py b/functest/tests/unit/utils/test_openstack_clean.py index 6ae7faa4..d85bd2ba 100644 --- a/functest/tests/unit/utils/test_openstack_clean.py +++ b/functest/tests/unit/utils/test_openstack_clean.py @@ -711,7 +711,7 @@ class OSCleanTesting(unittest.TestCase): as mock_remove_tenants, \ mock.patch('functest.utils.openstack_clean.yaml.safe_load', return_value=mock.Mock()), \ - mock.patch('__builtin__.open', mock.mock_open()) as m: + mock.patch('six.moves.builtins.open', mock.mock_open()) as m: openstack_clean.main() self.assertTrue(mock_remove_instances) self.assertTrue(mock_remove_images) |