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
Branches
Tags
No related merge requests found
...@@ -112,6 +112,12 @@ class TestRenumber(unittest.TestCase): ...@@ -112,6 +112,12 @@ class TestRenumber(unittest.TestCase):
if __name__ == "__main__": if __name__ == "__main__":
# test renumbering # 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: try:
unittest.main() unittest.main()
except Exception, e: except Exception, e:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment