Skip to content

Commit

Permalink
Include original exception string in the raised SystemExit.
Browse files Browse the repository at this point in the history
	* tests/common.py (importModule): Include original exception
	string in the raised SystemExit.
  • Loading branch information
Gustavo J. A. M. Carneiro committed Apr 11, 2006
1 parent c10ecb8 commit fa4192f
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
5 changes: 5 additions & 0 deletions ChangeLog
@@ -1,3 +1,8 @@
2006-04-11 Gustavo J. A. M. Carneiro <gjc@gnome.org>

* tests/common.py (importModule): Include original exception
string in the raised SystemExit.

2006-04-11 Johan Dahlin <jdahlin@async.com.br>

* gobject/.cvsignore:
Expand Down
2 changes: 1 addition & 1 deletion tests/common.py
Expand Up @@ -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__
Expand Down

0 comments on commit fa4192f

Please sign in to comment.