diff options
author | Vincent Danno <vincent.danno@orange.com> | 2021-05-26 13:08:55 +0200 |
---|---|---|
committer | Vincent Danno <vincent.danno@orange.com> | 2021-06-01 20:40:32 +0200 |
commit | a656fd764b0a608caaf198bfa9685a09a7eaca16 (patch) | |
tree | 501fa47e06658b8a43e2ccca4837c530a49dfc72 /xtesting/tests/unit/utils/test_env.py | |
parent | 6192b2cf9ffd46bdb8189ce3236cf4d9b722b69c (diff) |
Drop six
python 2 was dropped [1] so we don't need six anymore
[1]: https://gerrit.opnfv.org/gerrit/c/functest-xtesting/+/68262
Signed-off-by: Vincent Danno <vincent.danno@orange.com>
Change-Id: I840211990b76f77a46e9e737fc4a4c857b57c0b2
Diffstat (limited to 'xtesting/tests/unit/utils/test_env.py')
-rw-r--r-- | xtesting/tests/unit/utils/test_env.py | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/xtesting/tests/unit/utils/test_env.py b/xtesting/tests/unit/utils/test_env.py index 08601fa5..83b1a19d 100644 --- a/xtesting/tests/unit/utils/test_env.py +++ b/xtesting/tests/unit/utils/test_env.py @@ -12,8 +12,7 @@ import logging import os import unittest - -from six.moves import reload_module +import importlib from xtesting.utils import env @@ -32,7 +31,7 @@ class EnvTesting(unittest.TestCase): def test_get_unknown_env(self): self.assertEqual(env.get('FOO'), 'foo') - reload_module(env) + importlib.reload(env) def test_get_unset_env(self): del os.environ['CI_LOOP'] |