summaryrefslogtreecommitdiff
path: root/tests/warn
diff options
context:
space:
mode:
authorColin Walters <walters@verbum.org>2011-07-27 10:30:45 -0400
committerColin Walters <walters@verbum.org>2011-07-27 10:30:45 -0400
commitf80747a7a387a1bc8144652add4bb14fad8680fb (patch)
tree0c3424054302f22b9d7e6c8a8cdf32519778f04d /tests/warn
parent06c9453fda1d7c5ca41661f0e37a23649889428a (diff)
downloadgobject-introspection-f80747a7a387a1bc8144652add4bb14fad8680fb.tar.gz
warningtester: Hack in DATADIRGOBJECT_INTROSPECTION_1_29_15
Diffstat (limited to 'tests/warn')
-rw-r--r--tests/warn/warningtester.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/tests/warn/warningtester.py b/tests/warn/warningtester.py
index bd1a4ad3..3ad4b8a5 100644
--- a/tests/warn/warningtester.py
+++ b/tests/warn/warningtester.py
@@ -3,11 +3,15 @@ import os
import os.path
import sys
from StringIO import StringIO
+import __builtin__
path=os.getenv('UNINSTALLED_INTROSPECTION_SRCDIR', None)
assert path is not None
sys.path.insert(0, path)
+# Not correct, but enough to get the tests going uninstalled
+__builtin__.__dict__['DATADIR'] = path
+
from giscanner.annotationparser import AnnotationParser
from giscanner.ast import Include, Namespace
from giscanner.introspectablepass import IntrospectablePass