summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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