summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorGregory Becker <becker33@llnl.gov>2018-12-03 17:14:43 -0800
committerGreg Becker <becker33@llnl.gov>2018-12-06 15:48:23 -0800
commit7bb7b946667723aa0121551aaf4cb1ac6509c797 (patch)
tree166705e041c32d0e636e876ace344a6201835d34 /lib
parentf35a91a88aede5b03a4fe025e8107bb5679c4f61 (diff)
downloadspack-7bb7b946667723aa0121551aaf4cb1ac6509c797.tar.gz
spack-7bb7b946667723aa0121551aaf4cb1ac6509c797.tar.bz2
spack-7bb7b946667723aa0121551aaf4cb1ac6509c797.tar.xz
spack-7bb7b946667723aa0121551aaf4cb1ac6509c797.zip
Added test for multimethod inheritance
Diffstat (limited to 'lib')
-rw-r--r--lib/spack/spack/test/multimethod.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/spack/spack/test/multimethod.py b/lib/spack/spack/test/multimethod.py
index de694c1498..2780c57fc5 100644
--- a/lib/spack/spack/test/multimethod.py
+++ b/lib/spack/spack/test/multimethod.py
@@ -107,3 +107,7 @@ def test_multimethod_with_base_class(mock_packages):
pkg = spack.repo.get('multimethod@1')
assert pkg.base_method() == "base_method"
+
+def test_multimethod_inheritance(mock_packages):
+ pkg = spack.repo.get('multimethod-inheritor@1.0')
+ assert pkg.no_version_2() == 1