diff options
author | Johan Dahlin <johan@src.gnome.org> | 2006-05-06 19:38:45 +0000 |
---|---|---|
committer | Johan Dahlin <johan@src.gnome.org> | 2006-05-06 19:38:45 +0000 |
commit | 3754bdaa7321fd3463053244b7e792dacfe9fd28 (patch) | |
tree | 8a1aba284c3c930cbd05c51acd4278f622aeb972 /tests | |
parent | 2df4fbd862c2a1d7e6ea7c313c6f1c00511c9f7e (diff) | |
download | pygtk-3754bdaa7321fd3463053244b7e792dacfe9fd28.tar.gz |
Check so PyGObject 2.10 is used
Diffstat (limited to 'tests')
-rw-r--r-- | tests/common.py | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/tests/common.py b/tests/common.py index 5043c64a..3dbcb71e 100644 --- a/tests/common.py +++ b/tests/common.py @@ -17,6 +17,12 @@ def importModules(buildDir, srcDir): import ltihooks gobject = importModule('gobject', buildDir, 'gobject/gobject.la') + version = getattr(gobject, 'pygobject_version', None) + if not version: + raise AssertionError("gobject %r is too old" % gobject) + if version < (2, 10, 0): + raise AssertionError("gobject %r is too old, %s found" % (gobject, + version)) atk = importModule('atk', buildDir) pango = importModule('pango', buildDir) gtk = importModule('gtk', buildDir, 'gtk') |