summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorSimon Feltman <sfeltman@src.gnome.org>2014-04-28 14:55:27 -0700
committerThomas A Caswell <tcaswell@gmail.com>2015-09-29 14:59:40 -0400
commit2cfccfb860bbc8c5be77792012172bceb7e8b9e2 (patch)
treea0a28495cfae5aa86aedf6e28cf17290a16b8e6d /tests
parente09c0a2bca45016daee064669ef5b1c9a748a566 (diff)
downloadgobject-introspection-2cfccfb860bbc8c5be77792012172bceb7e8b9e2.tar.gz
giscanner: Use absolute_import for all Python files
Use absolute_import to ensure Python 3 compatibility of the code base. https://bugzilla.gnome.org/show_bug.cgi?id=679438
Diffstat (limited to 'tests')
-rw-r--r--tests/scanner/annotationparser/test_parser.py1
-rw-r--r--tests/scanner/annotationparser/test_patterns.py2
-rw-r--r--tests/scanner/test_sourcescanner.py2
-rw-r--r--tests/scanner/test_transformer.py2
-rw-r--r--tests/warn/warningtester.py2
5 files changed, 8 insertions, 1 deletions
diff --git a/tests/scanner/annotationparser/test_parser.py b/tests/scanner/annotationparser/test_parser.py
index 99c5da79..01bd000e 100644
--- a/tests/scanner/annotationparser/test_parser.py
+++ b/tests/scanner/annotationparser/test_parser.py
@@ -25,6 +25,7 @@ test_parser.py
Tests ensuring annotationparser.py continues to function correctly.
'''
+from __future__ import absolute_import
import difflib
import os
diff --git a/tests/scanner/annotationparser/test_patterns.py b/tests/scanner/annotationparser/test_patterns.py
index 738a83ff..327f240d 100644
--- a/tests/scanner/annotationparser/test_patterns.py
+++ b/tests/scanner/annotationparser/test_patterns.py
@@ -18,7 +18,6 @@
# 02110-1301, USA.
#
-
'''
test_patterns.py
@@ -30,6 +29,7 @@ should match, resulting symbolic groups are verified
against the expected output.
'''
+from __future__ import absolute_import
from giscanner.annotationparser import (COMMENT_BLOCK_START_RE, COMMENT_BLOCK_END_RE,
COMMENT_ASTERISK_RE, INDENTATION_RE, EMPTY_LINE_RE,
diff --git a/tests/scanner/test_sourcescanner.py b/tests/scanner/test_sourcescanner.py
index 3963683d..a6655540 100644
--- a/tests/scanner/test_sourcescanner.py
+++ b/tests/scanner/test_sourcescanner.py
@@ -1,3 +1,5 @@
+from __future__ import absolute_import
+
import unittest
import tempfile
import os
diff --git a/tests/scanner/test_transformer.py b/tests/scanner/test_transformer.py
index 37dbce91..c9ca75f3 100644
--- a/tests/scanner/test_transformer.py
+++ b/tests/scanner/test_transformer.py
@@ -1,3 +1,5 @@
+from __future__ import absolute_import
+
import unittest
import tempfile
import os
diff --git a/tests/warn/warningtester.py b/tests/warn/warningtester.py
index b2117910..4138518a 100644
--- a/tests/warn/warningtester.py
+++ b/tests/warn/warningtester.py
@@ -1,3 +1,5 @@
+from __future__ import absolute_import
+
import __builtin__
import os
import sys