diff options
author | Markus Lehtonen <markus.lehtonen@linux.intel.com> | 2013-08-29 16:14:38 +0300 |
---|---|---|
committer | Guido Günther <agx@sigxcpu.org> | 2013-09-04 22:18:45 +0200 |
commit | af2034ce4f66fa7d2bfe618c5d1ccb04ddd6077e (patch) | |
tree | 3ec4a388640ec228f0c0aa8ac59edf467aa8befc /tests | |
parent | 8cdc06fc46bda7723d7c2d9ac094c24e0d2410bd (diff) |
ComponentTestBase: fix env restore in teardown
Signed-off-by: Markus Lehtonen <markus.lehtonen@linux.intel.com>
Diffstat (limited to 'tests')
-rw-r--r-- | tests/component/__init__.py | 3 |
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""" |