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