From cdccafa53cdba40a7474d8df9dba6424048fc53e Mon Sep 17 00:00:00 2001 From: "Arnaud A. de Grandmaison" Date: Tue, 10 Jul 2012 00:00:05 +0000 Subject: [cindex.py] Make CompileCommand.arguments usage consistent with CompileCommand.directory and the rest of the python binding MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Patch by David Röthlisberger llvm-svn: 159970 --- clang/bindings/python/tests/cindex/test_cdb.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'clang/bindings/python/tests') diff --git a/clang/bindings/python/tests/cindex/test_cdb.py b/clang/bindings/python/tests/cindex/test_cdb.py index 374f99bcbf6..d0f580ea9f4 100644 --- a/clang/bindings/python/tests/cindex/test_cdb.py +++ b/clang/bindings/python/tests/cindex/test_cdb.py @@ -41,7 +41,7 @@ def test_1_compilecommand(): expected = [ 'clang++', '-o', 'project.o', '-c', '/home/john.doe/MyProject/project.cpp'] for arg, exp in zip(cmds[0].arguments, expected): - assert arg.spelling == exp + assert arg == exp def test_2_compilecommand(): """Check file with 2 compile commands""" @@ -59,7 +59,7 @@ def test_2_compilecommand(): for i in range(len(cmds)): assert cmds[i].directory == expected[i]['wd'] for arg, exp in zip(cmds[i].arguments, expected[i]['line']): - assert arg.spelling == exp + assert arg == exp def test_compilecommand_iterator_stops(): """Check that iterator stops after the correct number of elements""" -- cgit v1.2.3