diff options
author | Alexandre Fayolle <alexandre.fayolle@logilab.fr> | 2011-12-08 12:40:07 +0100 |
---|---|---|
committer | Alexandre Fayolle <alexandre.fayolle@logilab.fr> | 2011-12-08 12:40:07 +0100 |
commit | ed2c87eb547c414f2f1546bbf115f219bbcfa256 (patch) | |
tree | f49a2d56a13643d970cca513dec4ab959436062c | |
parent | 8c2d6f0c4e74144acfd4f26578d38ea319f468ae (diff) | |
download | logilab-common-ed2c87eb547c414f2f1546bbf115f219bbcfa256.tar.gz |
replace sys.exit with raise ImportError (closes: #84159)
-rw-r--r-- | testlib.py | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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 |