summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorGregory Becker <becker33@llnl.gov>2016-05-23 17:39:06 -0700
committerGregory Becker <becker33@llnl.gov>2016-05-23 17:39:06 -0700
commit513aae5ef8d610644e8f2d2c855e92a080573f5b (patch)
tree9649405e1671ba667f9bc897522f6f1c56993e32 /lib
parent1da6bbd14667b50f8c970022614baf39e059a779 (diff)
downloadspack-513aae5ef8d610644e8f2d2c855e92a080573f5b.tar.gz
spack-513aae5ef8d610644e8f2d2c855e92a080573f5b.tar.bz2
spack-513aae5ef8d610644e8f2d2c855e92a080573f5b.tar.xz
spack-513aae5ef8d610644e8f2d2c855e92a080573f5b.zip
fixed bug where earlier test was blowing away environment, causing an error on which('modulecmd')
Diffstat (limited to 'lib')
-rw-r--r--lib/spack/spack/test/environment.py5
1 files changed, 4 insertions, 1 deletions
diff --git a/lib/spack/spack/test/environment.py b/lib/spack/spack/test/environment.py
index ded1539e18..a0d959db2f 100644
--- a/lib/spack/spack/test/environment.py
+++ b/lib/spack/spack/test/environment.py
@@ -24,17 +24,20 @@
##############################################################################
import unittest
import os
+import copy
from spack.environment import EnvironmentModifications
class EnvironmentTest(unittest.TestCase):
def setUp(self):
- os.environ.clear()
os.environ['UNSET_ME'] = 'foo'
os.environ['EMPTY_PATH_LIST'] = ''
os.environ['PATH_LIST'] = '/path/second:/path/third'
os.environ['REMOVE_PATH_LIST'] = '/a/b:/duplicate:/a/c:/remove/this:/a/d:/duplicate/:/f/g'
+ def tearDown(self):
+ pass
+
def test_set(self):
env = EnvironmentModifications()
env.set('A', 'dummy value')