From: Michal Gorny Date: Fri, 12 Oct 2018 16:55:39 +0000 (+0000) Subject: [python] [tests] Remove cdb lookup failure test X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=74202c7278b3ec1d02f5a37ee44866ec35a2049f;p=clang [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 git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@344364 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/bindings/python/tests/cindex/test_cdb.py b/bindings/python/tests/cindex/test_cdb.py index 25ee6d3b98..5908239c46 100644 --- a/bindings/python/tests/cindex/test_cdb.py +++ b/bindings/python/tests/cindex/test_cdb.py @@ -31,11 +31,6 @@ class TestCDB(unittest.TestCase): """Check we can load a compilation database""" cdb = CompilationDatabase.fromDirectory(kInputsDir) - def test_lookup_fail(self): - """Check file lookup failure""" - cdb = CompilationDatabase.fromDirectory(kInputsDir) - self.assertIsNone(cdb.getCompileCommands('file_do_not_exist.cpp')) - def test_lookup_succeed(self): """Check we get some results if the file exists in the db""" cdb = CompilationDatabase.fromDirectory(kInputsDir)