Skip to content
Snippets Groups Projects
Commit d58ee27e authored by Marco Biasini's avatar Marco Biasini
Browse files

only run renumbering unit test when clustalW is installed

parent 29fa6a6e
No related branches found
No related tags found
No related merge requests found
......@@ -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:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment