From d58ee27e545245c3246dbf6c6d7f0f828b9088c2 Mon Sep 17 00:00:00 2001 From: Marco Biasini <marco.biasini@unibas.ch> Date: Mon, 15 Nov 2010 18:43:52 +0100 Subject: [PATCH] only run renumbering unit test when clustalW is installed --- modules/seq/alg/tests/test_renumber.py | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/modules/seq/alg/tests/test_renumber.py b/modules/seq/alg/tests/test_renumber.py index 498c42c86..6d365a9b7 100644 --- a/modules/seq/alg/tests/test_renumber.py +++ b/modules/seq/alg/tests/test_renumber.py @@ -112,6 +112,12 @@ class TestRenumber(unittest.TestCase): if __name__ == "__main__": # test renumbering + # test if clustalw package is available on system, otherwise ignore tests + try: + clustalw_path=settings.Locate(('clustalw', 'clustalw2')) + except(settings.FileNotFound): + print "Could not find clustalw executable: ignoring unit tests" + exit(0) try: unittest.main() except Exception, e: -- GitLab