aboutsummaryrefslogtreecommitdiffstats
path: root/xtesting/tests/unit/ci/test_run_tests.py
diff options
context:
space:
mode:
authorCedric Ollivier <cedric.ollivier@orange.com>2021-06-03 06:16:49 +0000
committerGerrit Code Review <gerrit@opnfv.org>2021-06-03 06:16:49 +0000
commitec6921039af3b016eecc6e609f2554aea0f81e2c (patch)
tree4d2df62475e73a563e572180a13dec3b5e1b994e /xtesting/tests/unit/ci/test_run_tests.py
parent454bef238020d8ac0e986807f34dfc140362b629 (diff)
parenta656fd764b0a608caaf198bfa9685a09a7eaca16 (diff)
Merge "Drop six"
Diffstat (limited to 'xtesting/tests/unit/ci/test_run_tests.py')
-rw-r--r--xtesting/tests/unit/ci/test_run_tests.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/xtesting/tests/unit/ci/test_run_tests.py b/xtesting/tests/unit/ci/test_run_tests.py
index 423bf486..b206a493 100644
--- a/xtesting/tests/unit/ci/test_run_tests.py
+++ b/xtesting/tests/unit/ci/test_run_tests.py
@@ -94,7 +94,7 @@ class RunTestsTesting(unittest.TestCase):
except Exception: # pylint: disable=broad-except
pass
envfile = 'rc_file'
- with mock.patch('six.moves.builtins.open',
+ with mock.patch('builtins.open',
mock.mock_open(read_data=msg)) as mock_method,\
mock.patch('os.path.isfile', return_value=True):
mock_method.return_value.__iter__ = lambda self: iter(
@@ -117,7 +117,7 @@ class RunTestsTesting(unittest.TestCase):
'export "\'OS_TENANT_NAME\'" = "\'admin\'"')
def test_get_dict_by_test(self):
- with mock.patch('six.moves.builtins.open', mock.mock_open()), \
+ with mock.patch('builtins.open', mock.mock_open()), \
mock.patch('yaml.safe_load') as mock_yaml:
mock_obj = mock.Mock()
testcase_dict = {'case_name': 'testname',