From fa4192fd9a063c63370c14ecc7f0aeaabe03e33c Mon Sep 17 00:00:00 2001 From: "Gustavo J. A. M. Carneiro" Date: Tue, 11 Apr 2006 20:13:27 +0000 Subject: Include original exception string in the raised SystemExit. * tests/common.py (importModule): Include original exception string in the raised SystemExit. --- tests/common.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'tests') 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__ -- cgit