summaryrefslogtreecommitdiff
path: root/tests/scanner
diff options
context:
space:
mode:
authorColin Walters <walters@verbum.org>2015-09-29 23:33:00 -0400
committerColin Walters <walters@verbum.org>2015-09-29 23:33:00 -0400
commit67a86420d4ffd394c2834fe3bf0a04f72a00283c (patch)
treeeef92c3a0af1c8dd090598b221e00d7b83a664e7 /tests/scanner
parentc8180733e309b9f6746036346c91270283dcf917 (diff)
downloadgobject-introspection-67a86420d4ffd394c2834fe3bf0a04f72a00283c.tar.gz
tests: Fix python2/3 difference with respect to rawunicodeescape
Apparently Python 2 still tries to interpret r"\u" in some circumstances?
Diffstat (limited to 'tests/scanner')
-rw-r--r--tests/scanner/test_transformer.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/scanner/test_transformer.py b/tests/scanner/test_transformer.py
index e766d61c..b45f532e 100644
--- a/tests/scanner/test_transformer.py
+++ b/tests/scanner/test_transformer.py
@@ -51,7 +51,7 @@ class TestIdentifierFilter(unittest.TestCase):
r"-e 's/^test_t$/TestContext/' " \
r"-e 's/\(.*\)_t$/\1/' " \
r"-e 's/^test_/Test_/' " \
- r"-e 's/_\([a-z]\)/\u\1/g'"
+ r"-e 's/_\([a-z]\)/" + '\\u' + r"\1/g'"
namespace = ast.Namespace('Test', '1.0')
xformer = Transformer(namespace, identifier_filter_cmd=cmd)