diff options
author | alalazo <massimiliano.culpo@googlemail.com> | 2016-07-25 18:22:09 +0200 |
---|---|---|
committer | alalazo <massimiliano.culpo@googlemail.com> | 2016-07-25 18:22:09 +0200 |
commit | c6a05f4a7d316a1b4590654fd4e64475cb54f194 (patch) | |
tree | cd3acd1f897df81116cff7d9219a95629209eb6d | |
parent | 3126ed5f212e12464d349118a56b2a0ac0bf9308 (diff) | |
download | spack-c6a05f4a7d316a1b4590654fd4e64475cb54f194.tar.gz spack-c6a05f4a7d316a1b4590654fd4e64475cb54f194.tar.bz2 spack-c6a05f4a7d316a1b4590654fd4e64475cb54f194.tar.xz spack-c6a05f4a7d316a1b4590654fd4e64475cb54f194.zip |
qa : flake8 issues fixes #1109
-rw-r--r-- | lib/spack/spack/environment.py | 1 | ||||
-rw-r--r-- | lib/spack/spack/test/modules.py | 6 |
2 files changed, 5 insertions, 2 deletions
diff --git a/lib/spack/spack/environment.py b/lib/spack/spack/environment.py index 9cb3f2575d..41136ab2eb 100644 --- a/lib/spack/spack/environment.py +++ b/lib/spack/spack/environment.py @@ -41,6 +41,7 @@ class NameModifier(object): self.__dict__.update(kwargs) self.args.update(kwargs) + class NameValueModifier(object): def __init__(self, name, value, **kwargs): diff --git a/lib/spack/spack/test/modules.py b/lib/spack/spack/test/modules.py index 0d33627be3..5e280d8e43 100644 --- a/lib/spack/spack/test/modules.py +++ b/lib/spack/spack/test/modules.py @@ -251,7 +251,8 @@ class TclTests(MockPackagesTest): 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 @@ class TclTests(MockPackagesTest): 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 |