qa : flake8 issues fixes #1109
This commit is contained in:
parent
3126ed5f21
commit
c6a05f4a7d
2 changed files with 5 additions and 2 deletions
|
@ -41,6 +41,7 @@ def update_args(self, **kwargs):
|
|||
self.__dict__.update(kwargs)
|
||||
self.args.update(kwargs)
|
||||
|
||||
|
||||
class NameValueModifier(object):
|
||||
|
||||
def __init__(self, name, value, **kwargs):
|
||||
|
|
|
@ -251,7 +251,8 @@ def test_alter_environment(self):
|
|||
self.assertEqual(
|
||||
len([x for x in content if 'setenv FOO "foo"' in x]), 1)
|
||||
self.assertEqual(len([x for x in content if 'unsetenv BAR' in x]), 1)
|
||||
self.assertEqual(len([x for x in content if 'setenv MPILEAKS_ROOT' in x]), 1)
|
||||
self.assertEqual(
|
||||
len([x for x in content if 'setenv MPILEAKS_ROOT' in x]), 1)
|
||||
|
||||
spec = spack.spec.Spec('libdwarf %clang platform=test target=x86_32')
|
||||
content = self.get_modulefile_content(spec)
|
||||
|
@ -266,7 +267,8 @@ def test_alter_environment(self):
|
|||
len([x for x in content if 'is-loaded foo/bar' in x]), 1)
|
||||
self.assertEqual(
|
||||
len([x for x in content if 'module load foo/bar' in x]), 1)
|
||||
self.assertEqual(len([x for x in content if 'setenv LIBDWARF_ROOT' in x]), 1)
|
||||
self.assertEqual(
|
||||
len([x for x in content if 'setenv LIBDWARF_ROOT' in x]), 1)
|
||||
|
||||
def test_blacklist(self):
|
||||
spack.modules.CONFIGURATION = configuration_blacklist
|
||||
|
|
Loading…
Reference in a new issue