summaryrefslogtreecommitdiffstats
path: root/tests/common.py
diff options
context:
space:
mode:
authorJohn Ehresman <jpe@wingware.com>2010-04-14 16:12:22 -0400
committerJohn Ehresman <jpe@wingware.com>2010-04-15 12:18:00 -0400
commit4572baf15f87cc0ef21d731fc7ba0ecf0de2f463 (patch)
tree7d345fac8090155fafb1ddc1fb0d99876665b3ce /tests/common.py
parentb28ac0322bf7b1316b5ed8b19492a3848b090ab0 (diff)
downloadpygobject-4572baf15f87cc0ef21d731fc7ba0ecf0de2f463.tar.gz
pygobject-4572baf15f87cc0ef21d731fc7ba0ecf0de2f463.tar.xz
pygobject-4572baf15f87cc0ef21d731fc7ba0ecf0de2f463.zip
Changes to module init, and to compile under python3. Doesn't work though
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__