aboutsummaryrefslogtreecommitdiffstats
path: root/xtesting/tests/unit/utils/test_env.py
diff options
context:
space:
mode:
Diffstat (limited to 'xtesting/tests/unit/utils/test_env.py')
-rw-r--r--xtesting/tests/unit/utils/test_env.py5
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']