Fixing the fix and removing debug printing

This commit is contained in:
Gregory Becker 2016-01-08 17:44:16 -08:00
parent 2b2d4bae4e
commit 6e5238d037
2 changed files with 3 additions and 2 deletions

View file

@ -95,7 +95,6 @@ def test_target_match(self):
platform = spack.architecture.sys_type()
targets = platform.targets.values()
for target in targets[:-1]:
print target
pkg = spack.db.get('multimethod='+target.name)
self.assertEqual(pkg.different_by_target(), target.name)

View file

@ -114,8 +114,10 @@ def has_a_default(self):
# platform = cls()
platform = spack.architecture.sys_type()
targets = platform.targets.values()
if len(targets) > 1:
targets = targets[:-1]
for target in targets[:-1]:
for target in targets:
@when('='+target.name)
def different_by_target(self):
return self.spec.target.name