From bc2d47a7d212cccba36ab07c70a75ace66b4369d Mon Sep 17 00:00:00 2001
From: Stefan Bienert <stefan.bienert@unibas.ch>
Date: Wed, 22 Jun 2011 13:56:28 +0200
Subject: [PATCH] converted "exit(0)" to "sys.exit(0)" in some test files.

---
 modules/bindings/tests/test_blast.py    | 4 ++--
 modules/bindings/tests/test_clustalw.py | 4 ++--
 modules/seq/alg/tests/test_renumber.py  | 4 ++--
 3 files changed, 6 insertions(+), 6 deletions(-)

diff --git a/modules/bindings/tests/test_blast.py b/modules/bindings/tests/test_blast.py
index 2b42bfd18..e8e151a4e 100644
--- a/modules/bindings/tests/test_blast.py
+++ b/modules/bindings/tests/test_blast.py
@@ -43,8 +43,8 @@ if __name__ == "__main__":
     blastpath=settings.Locate('blastall')
   except(settings.FileNotFound):
     print "Could not find blastall executable: ignoring unit tests"
-    exit(0)
+    sys.exit(0)
   try:
     unittest.main()
   except Exception, e:
-    print e
\ No newline at end of file
+    print e
diff --git a/modules/bindings/tests/test_clustalw.py b/modules/bindings/tests/test_clustalw.py
index 0536df8f7..0fdb040db 100644
--- a/modules/bindings/tests/test_clustalw.py
+++ b/modules/bindings/tests/test_clustalw.py
@@ -67,8 +67,8 @@ if __name__ == "__main__":
     clustalw_path=settings.Locate(('clustalw', 'clustalw2'))
   except(settings.FileNotFound):
     print "Could not find clustalw executable: ignoring unit tests"
-    exit(0)
+    sys.exit(0)
   try:
     unittest.main()
   except Exception, e:
-    print e
\ No newline at end of file
+    print e
diff --git a/modules/seq/alg/tests/test_renumber.py b/modules/seq/alg/tests/test_renumber.py
index 6d365a9b7..76a9bf1d1 100644
--- a/modules/seq/alg/tests/test_renumber.py
+++ b/modules/seq/alg/tests/test_renumber.py
@@ -117,8 +117,8 @@ if __name__ == "__main__":
     clustalw_path=settings.Locate(('clustalw', 'clustalw2'))
   except(settings.FileNotFound):
     print "Could not find clustalw executable: ignoring unit tests"
-    exit(0)  
+    sys.exit(0)  
   try:
     unittest.main()
   except Exception, e:
-    print e
\ No newline at end of file
+    print e
-- 
GitLab