diff --git a/modules/bindings/tests/test_blast.py b/modules/bindings/tests/test_blast.py index 85a65ea24370cfa34161b4c8d3395221f0a16ee2..48cb560685d5dd46dfb6682c6bfe5271cc7ca9c0 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()