Skip to content

Commit 4fc27bd

Browse files
committed
[python] [tests] Remove cdb lookup failure test
Remove the test checking for compilation db lookup failure. Since r342228, JSONCompilationDatabasePlugin infers compile commands for missing files, therefore making the lookup always succeed. Differential Revision: https://reviews.llvm.org/D53202 llvm-svn: 344364
1 parent cbf497f commit 4fc27bd

File tree

1 file changed

+0
-5
lines changed

1 file changed

+0
-5
lines changed

clang/bindings/python/tests/cindex/test_cdb.py

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -31,11 +31,6 @@ def test_create(self):
3131
"""Check we can load a compilation database"""
3232
cdb = CompilationDatabase.fromDirectory(kInputsDir)
3333

34-
def test_lookup_fail(self):
35-
"""Check file lookup failure"""
36-
cdb = CompilationDatabase.fromDirectory(kInputsDir)
37-
self.assertIsNone(cdb.getCompileCommands('file_do_not_exist.cpp'))
38-
3934
def test_lookup_succeed(self):
4035
"""Check we get some results if the file exists in the db"""
4136
cdb = CompilationDatabase.fromDirectory(kInputsDir)

0 commit comments

Comments
 (0)