summaryrefslogtreecommitdiffstats
path: root/tests/common.py
diff options
context:
space:
mode:
Diffstat (limited to 'tests/common.py')
-rw-r--r--tests/common.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/tests/common.py b/tests/common.py
index a6fa73d..ff30ec1 100644
--- a/tests/common.py
+++ b/tests/common.py
@@ -34,7 +34,9 @@ def importModule(module, directory, name=None):
try:
obj = __import__(module, {}, {}, '')
- except ImportError, e:
+ except ImportError:
+ raise
+ e = sys.exc_info()[1]
raise SystemExit('%s could not be imported: %s' % (origName, e))
location = obj.__file__