qa : fixed flake8 issues
This commit is contained in:
parent
a33077b77f
commit
670669ef80
@ -100,7 +100,7 @@ def mock_open(filename, mode):
|
||||
},
|
||||
'platform=test target=x86_32': {
|
||||
'load': ['foo/bar']
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@ -201,7 +201,6 @@ def tearDown(self):
|
||||
|
||||
def get_modulefile_content(self, spec):
|
||||
spec.concretize()
|
||||
print spec, '&&&&&'
|
||||
generator = spack.modules.TclModule(spec)
|
||||
generator.write()
|
||||
content = FILE_REGISTRY[generator.file_name].split('\n')
|
||||
@ -269,7 +268,6 @@ def test_blacklist(self):
|
||||
spack.modules.CONFIGURATION = configuration_blacklist
|
||||
spec = spack.spec.Spec('mpileaks')
|
||||
content = self.get_modulefile_content(spec)
|
||||
print('\n'.join(content))
|
||||
self.assertEqual(len([x for x in content if 'is-loaded' in x]), 1)
|
||||
self.assertEqual(len([x for x in content if 'module load ' in x]), 1)
|
||||
spec = spack.spec.Spec('callpath arch=x86-linux')
|
||||
@ -277,7 +275,6 @@ def test_blacklist(self):
|
||||
self.assertRaises(AttributeError, self.get_modulefile_content, spec)
|
||||
spec = spack.spec.Spec('zmpi arch=x86-linux')
|
||||
content = self.get_modulefile_content(spec)
|
||||
print('\n'.join(content))
|
||||
self.assertEqual(len([x for x in content if 'is-loaded' in x]), 1)
|
||||
self.assertEqual(len([x for x in content if 'module load ' in x]), 1)
|
||||
|
||||
@ -343,6 +340,5 @@ def test_dotkit(self):
|
||||
spack.modules.CONFIGURATION = configuration_dotkit
|
||||
spec = spack.spec.Spec('mpileaks arch=x86-linux')
|
||||
content = self.get_modulefile_content(spec)
|
||||
print('\n'.join(content))
|
||||
self.assertTrue('#c spack' in content)
|
||||
self.assertTrue('#d mpileaks @2.3' in content)
|
||||
|
Loading…
Reference in New Issue
Block a user