summaryrefslogtreecommitdiffstats
path: root/clang/bindings/python/tests
diff options
context:
space:
mode:
Diffstat (limited to 'clang/bindings/python/tests')
-rw-r--r--clang/bindings/python/tests/cindex/test_translation_unit.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/clang/bindings/python/tests/cindex/test_translation_unit.py b/clang/bindings/python/tests/cindex/test_translation_unit.py
index f8d4bebc1bc..510119135bc 100644
--- a/clang/bindings/python/tests/cindex/test_translation_unit.py
+++ b/clang/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')
OpenPOWER on IntegriCloud