summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorAdam J. Stewart <ajstewart426@gmail.com>2016-07-05 11:36:07 -0500
committerAdam J. Stewart <ajstewart426@gmail.com>2016-07-18 07:45:28 -0500
commit89c9bec81ec3afa96ba25dd6aea9727abc8a8f0f (patch)
tree65badd17be586021e32fffe31cc8e64677b66139 /lib
parent262ab401884a8b46992872b8c010fa844cb14271 (diff)
downloadspack-89c9bec81ec3afa96ba25dd6aea9727abc8a8f0f.tar.gz
spack-89c9bec81ec3afa96ba25dd6aea9727abc8a8f0f.tar.bz2
spack-89c9bec81ec3afa96ba25dd6aea9727abc8a8f0f.tar.xz
spack-89c9bec81ec3afa96ba25dd6aea9727abc8a8f0f.zip
Flake8
Diffstat (limited to 'lib')
-rw-r--r--lib/spack/spack/test/__init__.py19
-rw-r--r--lib/spack/spack/test/build_system_guess.py8
2 files changed, 10 insertions, 17 deletions
diff --git a/lib/spack/spack/test/__init__.py b/lib/spack/spack/test/__init__.py
index 19bc1d89d3..9f7da46a1a 100644
--- a/lib/spack/spack/test/__init__.py
+++ b/lib/spack/spack/test/__init__.py
@@ -32,15 +32,16 @@ from llnl.util.tty.colify import colify
from spack.test.tally_plugin import Tally
"""Names of tests to be included in Spack's test suite"""
-test_names = ['architecture', 'versions', 'url_parse', 'url_substitution', 'packages', 'stage',
- 'spec_syntax', 'spec_semantics', 'spec_dag', 'concretize',
- 'multimethod', 'install', 'package_sanity', 'config',
- 'directory_layout', 'pattern', 'python_version', 'git_fetch',
- 'svn_fetch', 'hg_fetch', 'mirror', 'modules', 'url_extrapolate',
- 'cc', 'link_tree', 'spec_yaml', 'optional_deps',
- 'make_executable', 'build_system_guess', 'lock', 'database',
- 'namespace_trie', 'yaml', 'sbang', 'environment', 'cmd.find',
- 'cmd.uninstall', 'cmd.test_install', 'cmd.test_compiler_cmd']
+test_names = [
+ 'architecture', 'versions', 'url_parse', 'url_substitution', 'packages',
+ 'stage', 'spec_syntax', 'spec_semantics', 'spec_dag', 'concretize',
+ 'multimethod', 'install', 'package_sanity', 'config', 'directory_layout',
+ 'pattern', 'python_version', 'git_fetch', 'svn_fetch', 'hg_fetch',
+ 'mirror', 'modules', 'url_extrapolate', 'cc', 'link_tree', 'spec_yaml',
+ 'optional_deps', 'make_executable', 'build_system_guess', 'lock',
+ 'database', 'namespace_trie', 'yaml', 'sbang', 'environment', 'cmd.find',
+ 'cmd.uninstall', 'cmd.test_install', 'cmd.test_compiler_cmd'
+]
def list_tests():
diff --git a/lib/spack/spack/test/build_system_guess.py b/lib/spack/spack/test/build_system_guess.py
index 80b867a528..e728a47cf4 100644
--- a/lib/spack/spack/test/build_system_guess.py
+++ b/lib/spack/spack/test/build_system_guess.py
@@ -44,12 +44,10 @@ class InstallTest(unittest.TestCase):
os.chdir(self.tmpdir)
self.stage = None
-
def tearDown(self):
shutil.rmtree(self.tmpdir, ignore_errors=True)
os.chdir(self.orig_dir)
-
def check_archive(self, filename, system):
mkdirp('archive')
touch(join_path('archive', filename))
@@ -64,26 +62,20 @@ class InstallTest(unittest.TestCase):
guesser(stage, url)
self.assertEqual(system, guesser.build_system)
-
def test_autotools(self):
self.check_archive('configure', 'autotools')
-
def test_cmake(self):
self.check_archive('CMakeLists.txt', 'cmake')
-
def test_scons(self):
self.check_archive('SConstruct', 'scons')
-
def test_python(self):
self.check_archive('setup.py', 'python')
-
def test_R(self):
self.check_archive('NAMESPACE', 'R')
-
def test_unknown(self):
self.check_archive('foobar', 'unknown')