summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlexandre Fayolle <alexandre.fayolle@logilab.fr>2011-12-08 12:40:07 +0100
committerAlexandre Fayolle <alexandre.fayolle@logilab.fr>2011-12-08 12:40:07 +0100
commited2c87eb547c414f2f1546bbf115f219bbcfa256 (patch)
treef49a2d56a13643d970cca513dec4ab959436062c
parent8c2d6f0c4e74144acfd4f26578d38ea319f468ae (diff)
downloadlogilab-common-ed2c87eb547c414f2f1546bbf115f219bbcfa256.tar.gz
replace sys.exit with raise ImportError (closes: #84159)
-rw-r--r--testlib.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/testlib.py b/testlib.py
index da49387..b502d0e 100644
--- a/testlib.py
+++ b/testlib.py
@@ -62,7 +62,7 @@ if not getattr(unittest_legacy, "__package__", None):
import unittest2 as unittest
from unittest2 import SkipTest
except ImportError:
- sys.exit("You have to install python-unittest2 to use this module")
+ raise ImportError("You have to install python-unittest2 to use %s" % __name__)
else:
import unittest
from unittest import SkipTest