fix : failing unit tests due to missing self (#1806)

This commit is contained in:
Massimiliano Culpo 2016-09-20 16:47:13 +02:00 committed by Todd Gamblin
parent 2cbae1d691
commit eb8a0ef75e

View File

@ -251,7 +251,7 @@ def test_autoload(self):
# - 1 ('build','link') dependency
# - 1 ('build',) dependency
# Just make sure the 'build' dependency is not there
spack.modules.CONFIGURATION = configuration_autoload_direct
spack.modules.CONFIGURATION = self.configuration_autoload_direct
spec = spack.spec.Spec('dtbuild1')
content = self.get_modulefile_content(spec)
self.assertEqual(len([x for x in content if 'is-loaded' in x]), 2)
@ -262,7 +262,7 @@ def test_autoload(self):
# - 1 ('build','link') dependency
# - 1 ('build',) dependency
# Just make sure the 'build' dependency is not there
spack.modules.CONFIGURATION = configuration_autoload_all
spack.modules.CONFIGURATION = self.configuration_autoload_all
spec = spack.spec.Spec('dtbuild1')
content = self.get_modulefile_content(spec)
self.assertEqual(len([x for x in content if 'is-loaded' in x]), 2)