diff options
author | Michal Gorny <mgorny@gentoo.org> | 2018-10-12 16:55:39 +0000 |
---|---|---|
committer | Michal Gorny <mgorny@gentoo.org> | 2018-10-12 16:55:39 +0000 |
commit | 4fc27bd937e5192be36fcb9ef39ef8798e7272cc (patch) | |
tree | c9823d059f37a826bc053d211d38b04277dcaa7d /clang/bindings | |
parent | cbf497f4528f1a16429ef1d668c77a547923cda6 (diff) |
[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
Diffstat (limited to 'clang/bindings')
-rw-r--r-- | clang/bindings/python/tests/cindex/test_cdb.py | 5 |
1 files changed, 0 insertions, 5 deletions
diff --git a/clang/bindings/python/tests/cindex/test_cdb.py b/clang/bindings/python/tests/cindex/test_cdb.py index 25ee6d3b982d..5908239c46c8 100644 --- a/clang/bindings/python/tests/cindex/test_cdb.py +++ b/clang/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) |