diff options
author | Todd Gamblin <tgamblin@llnl.gov> | 2015-07-14 23:43:59 -0700 |
---|---|---|
committer | Todd Gamblin <tgamblin@llnl.gov> | 2015-07-14 23:43:59 -0700 |
commit | 2e905992830b9f672fc35ac10c93e6dd2a8749d8 (patch) | |
tree | 2a17e0f81265b3271a9ae8c7f04cd09d029fe877 /lib | |
parent | 2e37523428a0c29c10626bbc8f75b0582aeb4c9c (diff) | |
parent | 9d1f8f6bfd59cf2e083276ef095618f8545c5167 (diff) | |
download | spack-2e905992830b9f672fc35ac10c93e6dd2a8749d8.tar.gz spack-2e905992830b9f672fc35ac10c93e6dd2a8749d8.tar.bz2 spack-2e905992830b9f672fc35ac10c93e6dd2a8749d8.tar.xz spack-2e905992830b9f672fc35ac10c93e6dd2a8749d8.zip |
Merge branch 'develop' of github.com:scalability-llnl/spack into develop
Diffstat (limited to 'lib')
-rw-r--r-- | lib/spack/spack/test/python_version.py | 17 |
1 files changed, 15 insertions, 2 deletions
diff --git a/lib/spack/spack/test/python_version.py b/lib/spack/spack/test/python_version.py index 06d87e11ad..5b803b4cf3 100644 --- a/lib/spack/spack/test/python_version.py +++ b/lib/spack/spack/test/python_version.py @@ -56,11 +56,16 @@ class PythonVersionTest(unittest.TestCase): yield os.path.join(root, filename) - def test_python_versions(self): + def all_package_py_files(self): + for name in spack.db.all_package_names(): + yield spack.db.filename_for_package_name(name) + + + def check_python_versions(self, files): # dict version -> filename -> reasons all_issues = {} - for fn in self.spack_python_files(): + for fn in files: with open(fn) as pyfile: versions = pyqver2.get_versions(pyfile.read()) for ver, reasons in versions.items(): @@ -93,3 +98,11 @@ class PythonVersionTest(unittest.TestCase): print fmt % msg self.assertTrue(len(all_issues) == 0) + + + def test_core_module_compatibility(self): + self.check_python_versions(self.spack_python_files()) + + + def test_package_module_compatibility(self): + self.check_python_versions(self.all_package_py_files()) |