diff options
author | Johan Dahlin <johan@src.gnome.org> | 2004-07-19 11:29:13 +0000 |
---|---|---|
committer | Johan Dahlin <johan@src.gnome.org> | 2004-07-19 11:29:13 +0000 |
commit | c2d430551d355245c74e8b30ca4796e772f42275 (patch) | |
tree | 501c7dd5ef8a0176a3781a7c600c431704f5961b /tests/common.py | |
parent | cfa02147247fa59b82eff91e2058d1488ff438e3 (diff) | |
download | pygobject-c2d430551d355245c74e8b30ca4796e772f42275.tar.gz pygobject-c2d430551d355245c74e8b30ca4796e772f42275.tar.xz pygobject-c2d430551d355245c74e8b30ca4796e772f42275.zip |
Fix, a window is really WITHDRAWN if it's not SHOWN and not ICONIFIED...
* tests/enum.py (EnumTest.testWindowGetState): Fix, a window is
really WITHDRAWN if it's not SHOWN and not ICONIFIED...
* tests/common.py: Add .. and ../gobject when distcheck isn't ran
* gobject/pygenum.c: Use a dict instead of a tuple for
__enum_values__, so we can handle negative enum values (eg: GDK_NOTHING)
* gobject/pyflags.c: Ditto for __flag_values__
* gobject/pygparamspec.c (pyg_param_spec_getattr): reference count fixing
Diffstat (limited to 'tests/common.py')
-rw-r--r-- | tests/common.py | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/tests/common.py b/tests/common.py index b5eb774..adf4bcc 100644 --- a/tests/common.py +++ b/tests/common.py @@ -1,3 +1,10 @@ +import os +import sys + +if not os.environ.has_key('DIST_CHECK'): + sys.path.insert(0, '..') + sys.path.insert(0, '../gobject') + import ltihooks import gobject |