summaryrefslogtreecommitdiffstats
path: root/bindings/python/tests
diff options
context:
space:
mode:
authorDaniel Dunbar <daniel@zuster.org>2010-01-24 21:19:57 +0000
committerDaniel Dunbar <daniel@zuster.org>2010-01-24 21:19:57 +0000
commita33dca490ad55c6f4bfc38a911f41a66f508a482 (patch)
treeb1d98010989e71180486b2f4c3c6e49f31382355 /bindings/python/tests
parentbe0b555b8088e5dd5d193560a3f29fe383810b4c (diff)
cindex/Python: Convert CXString objects to regular Python strings below API.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@94384 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'bindings/python/tests')
-rw-r--r--bindings/python/tests/cindex/test_translation_unit.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/bindings/python/tests/cindex/test_translation_unit.py b/bindings/python/tests/cindex/test_translation_unit.py
index f8d4bebc1b..510119135b 100644
--- a/bindings/python/tests/cindex/test_translation_unit.py
+++ b/bindings/python/tests/cindex/test_translation_unit.py
@@ -7,7 +7,7 @@ def test_spelling():
path = os.path.join(kInputsDir, 'hello.cpp')
index = Index.create()
tu = index.parse(path)
- assert str(tu.spelling) == path
+ assert tu.spelling == path
def test_cursor():
path = os.path.join(kInputsDir, 'hello.cpp')