summaryrefslogtreecommitdiffstats
path: root/tests/common.py
diff options
context:
space:
mode:
authorGustavo J. A. M. Carneiro <gjc@src.gnome.org>2006-04-11 20:13:27 +0000
committerGustavo J. A. M. Carneiro <gjc@src.gnome.org>2006-04-11 20:13:27 +0000
commitfa4192fd9a063c63370c14ecc7f0aeaabe03e33c (patch)
treebb775519f2d8200b48f500a82f5939617b72f443 /tests/common.py
parentc10ecb8121f62361f744fd3d6034c9339890f6f8 (diff)
downloadpygobject-fa4192fd9a063c63370c14ecc7f0aeaabe03e33c.tar.gz
pygobject-fa4192fd9a063c63370c14ecc7f0aeaabe03e33c.tar.xz
pygobject-fa4192fd9a063c63370c14ecc7f0aeaabe03e33c.zip
Include original exception string in the raised SystemExit.
* tests/common.py (importModule): Include original exception string in the raised SystemExit.
Diffstat (limited to 'tests/common.py')
-rw-r--r--tests/common.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/common.py b/tests/common.py
index ef040af..25136b2 100644
--- a/tests/common.py
+++ b/tests/common.py
@@ -36,7 +36,7 @@ def importModule(module, directory, name=None):
try:
obj = __import__(module, {}, {}, '')
except ImportError, e:
- raise SystemExit('%s could not be imported' % origName)
+ raise SystemExit('%s could not be imported: %s' % (origName, e))
if hasattr(obj, '__file__'):
location = obj.__file__