summaryrefslogtreecommitdiff
path: root/testlib.py
diff options
context:
space:
mode:
Diffstat (limited to 'testlib.py')
-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