diff options
author | Massimiliano Culpo <massimiliano.culpo@googlemail.com> | 2016-04-06 22:19:07 +0200 |
---|---|---|
committer | Massimiliano Culpo <massimiliano.culpo@googlemail.com> | 2016-04-06 22:19:07 +0200 |
commit | 400166398239be0880c025672dd3e5eb6c8bac7f (patch) | |
tree | 1c924a8a0ff896de0085fd091946b8afe1933373 /lib | |
parent | 73b6214a13339f11dbc33b0e068c13499f139b6f (diff) | |
download | spack-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.py | 4 |
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 |