From 4fc27bd937e5192be36fcb9ef39ef8798e7272cc Mon Sep 17 00:00:00 2001 From: Michal Gorny Date: Fri, 12 Oct 2018 16:55:39 +0000 Subject: [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 --- clang/bindings/python/tests/cindex/test_cdb.py | 5 ----- 1 file changed, 5 deletions(-) (limited to 'clang/bindings/python') diff --git a/clang/bindings/python/tests/cindex/test_cdb.py b/clang/bindings/python/tests/cindex/test_cdb.py index 25ee6d3b982..5908239c46c 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) -- cgit v1.2.3