From 3577b93722b768a216f2b612aa91e7468f9aaf38 Mon Sep 17 00:00:00 2001 From: Gabriel Studer <gabriel.studer@stud.unibas.ch> Date: Tue, 20 Nov 2012 13:57:06 +0100 Subject: [PATCH] slightly simplified check, wether blast executable is available. --- modules/bindings/tests/test_blast.py | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/modules/bindings/tests/test_blast.py b/modules/bindings/tests/test_blast.py index 85a65ea24..48cb56068 100644 --- a/modules/bindings/tests/test_blast.py +++ b/modules/bindings/tests/test_blast.py @@ -97,12 +97,9 @@ class TestBlastBindings(unittest.TestCase): if __name__ == "__main__": # test if blast package is available on system, otherwise ignore tests try: - blastpath=settings.Locate('blastp') + blastpath=settings.Locate(('blastp','blastall')) except(settings.FileNotFound): - try: - blastpath=settings.Locate('blastall') - except: - print "Could not find blast executable: ignoring unit tests" - sys.exit(0) + print "Could not find blast executable: ignoring unit tests" + sys.exit(0) from ost import testutils testutils.RunTests() -- GitLab