Skip to content
Snippets Groups Projects
Commit bc2d47a7 authored by Bienchen's avatar Bienchen
Browse files

converted "exit(0)" to "sys.exit(0)" in some test files.

parent eb05586d
No related branches found
No related tags found
No related merge requests found
...@@ -43,8 +43,8 @@ if __name__ == "__main__": ...@@ -43,8 +43,8 @@ if __name__ == "__main__":
blastpath=settings.Locate('blastall') blastpath=settings.Locate('blastall')
except(settings.FileNotFound): except(settings.FileNotFound):
print "Could not find blastall executable: ignoring unit tests" print "Could not find blastall executable: ignoring unit tests"
exit(0) sys.exit(0)
try: try:
unittest.main() unittest.main()
except Exception, e: except Exception, e:
print e print e
\ No newline at end of file
...@@ -67,8 +67,8 @@ if __name__ == "__main__": ...@@ -67,8 +67,8 @@ if __name__ == "__main__":
clustalw_path=settings.Locate(('clustalw', 'clustalw2')) clustalw_path=settings.Locate(('clustalw', 'clustalw2'))
except(settings.FileNotFound): except(settings.FileNotFound):
print "Could not find clustalw executable: ignoring unit tests" print "Could not find clustalw executable: ignoring unit tests"
exit(0) sys.exit(0)
try: try:
unittest.main() unittest.main()
except Exception, e: except Exception, e:
print e print e
\ No newline at end of file
...@@ -117,8 +117,8 @@ if __name__ == "__main__": ...@@ -117,8 +117,8 @@ if __name__ == "__main__":
clustalw_path=settings.Locate(('clustalw', 'clustalw2')) clustalw_path=settings.Locate(('clustalw', 'clustalw2'))
except(settings.FileNotFound): except(settings.FileNotFound):
print "Could not find clustalw executable: ignoring unit tests" print "Could not find clustalw executable: ignoring unit tests"
exit(0) sys.exit(0)
try: try:
unittest.main() unittest.main()
except Exception, e: except Exception, e:
print e print e
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment