aboutsummaryrefslogtreecommitdiffhomepage
path: root/tests/component/__init__.py
diff options
context:
space:
mode:
Diffstat (limited to 'tests/component/__init__.py')
-rw-r--r--tests/component/__init__.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/tests/component/__init__.py b/tests/component/__init__.py
index 9bc126dc..a6334cba 100644
--- a/tests/component/__init__.py
+++ b/tests/component/__init__.py
@@ -89,7 +89,8 @@ class ComponentTestBase(object):
def teardown_class(cls):
"""Test class case teardown"""
# Return original environment
- os.environ = cls.orig_env
+ os.environ.clear()
+ os.environ.update(cls.orig_env)
def __init__(self):
"""Object initialization"""