summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorMassimiliano Culpo <massimiliano.culpo@googlemail.com>2016-04-06 22:19:07 +0200
committerMassimiliano Culpo <massimiliano.culpo@googlemail.com>2016-04-06 22:19:07 +0200
commit400166398239be0880c025672dd3e5eb6c8bac7f (patch)
tree1c924a8a0ff896de0085fd091946b8afe1933373 /lib
parent73b6214a13339f11dbc33b0e068c13499f139b6f (diff)
downloadspack-400166398239be0880c025672dd3e5eb6c8bac7f.tar.gz
spack-400166398239be0880c025672dd3e5eb6c8bac7f.tar.bz2
spack-400166398239be0880c025672dd3e5eb6c8bac7f.tar.xz
spack-400166398239be0880c025672dd3e5eb6c8bac7f.zip
leftover from cherry-pick
Diffstat (limited to 'lib')
-rw-r--r--lib/spack/spack/test/mock_database.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/lib/spack/spack/test/mock_database.py b/lib/spack/spack/test/mock_database.py
index 6fd05439bf..82ba59fc48 100644
--- a/lib/spack/spack/test/mock_database.py
+++ b/lib/spack/spack/test/mock_database.py
@@ -17,7 +17,7 @@ class MockDatabase(MockPackagesTest):
def _mock_remove(self, spec):
specs = spack.installed_db.query(spec)
- assert(len(specs) == 1)
+ assert len(specs) == 1
spec = specs[0]
spec.package.do_uninstall(spec)
@@ -71,6 +71,8 @@ class MockDatabase(MockPackagesTest):
self._mock_install('mpileaks ^zmpi')
def tearDown(self):
+ for spec in spack.installed_db.query():
+ spec.package.do_uninstall(spec)
super(MockDatabase, self).tearDown()
shutil.rmtree(self.install_path)
spack.install_path = self.spack_install_path