Skip to content
Snippets Groups Projects
Commit 358bfdaa authored by Todd Gamblin's avatar Todd Gamblin
Browse files

Another multimethod test for vdeps

parent 87dc2151
No related branches found
No related tags found
No related merge requests found
...@@ -92,10 +92,9 @@ def different_by_dep(self): ...@@ -92,10 +92,9 @@ def different_by_dep(self):
# #
# Make sure we can switch on virtual dependencies # Make sure we can switch on virtual dependencies
# #
@when('^mpi@2:')
def different_by_virtual_dep(self): def different_by_virtual_dep(self):
return 'mpi@2:' return 1
@when('^mpi@:1') @when('^mpi@2:')
def different_by_virtual_dep(self): def different_by_virtual_dep(self):
return 'mpi@:1' return 2
...@@ -76,9 +76,9 @@ def test_ambiguous_dep(self): ...@@ -76,9 +76,9 @@ def test_ambiguous_dep(self):
self.assertRaises(AmbiguousMethodError, pkg.different_by_dep) self.assertRaises(AmbiguousMethodError, pkg.different_by_dep)
def test_one_dep_match(self): def test_virtual_dep_match(self):
pass pkg = packages.get('multimethod^mpich2')
self.assertEqual(pkg.different_by_virtual_dep(), 2)
pkg = packages.get('multimethod^mpich@1.0')
def test_one_dep_match(self): self.assertEqual(pkg.different_by_virtual_dep(), 1)
pass
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment