diff options
author | Arnaud A. de Grandmaison <arnaud.adegm@gmail.com> | 2012-06-30 20:43:37 +0000 |
---|---|---|
committer | Arnaud A. de Grandmaison <arnaud.adegm@gmail.com> | 2012-06-30 20:43:37 +0000 |
commit | 4439478c38222bb56d42a9afe4c6c51cb8b593d2 (patch) | |
tree | 8d0ecf7d9b42bcf4c236b2240dfca15350ebc1f8 /bindings | |
parent | e27537d2cf6936043f7abdf4c6b91ae98fb40f1c (diff) |
[cindex.py] Fix comments
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@159492 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'bindings')
-rw-r--r-- | bindings/python/clang/cindex.py | 2 | ||||
-rw-r--r-- | bindings/python/tests/cindex/test_cdb.py | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/bindings/python/clang/cindex.py b/bindings/python/clang/cindex.py index a3da4217de..23c1edeb44 100644 --- a/bindings/python/clang/cindex.py +++ b/bindings/python/clang/cindex.py @@ -2206,7 +2206,7 @@ class CompilationDatabase(ClangObject): def getCompileCommands(self, filename): """ Get an iterable object providing all the CompileCommands available to - build filename. Raise KeyError if filename is not found in the database. + build filename. Returns None if filename is not found in the database. """ return CompilationDatabase_getCompileCommands(self, filename) diff --git a/bindings/python/tests/cindex/test_cdb.py b/bindings/python/tests/cindex/test_cdb.py index 84ac1f87d5..38de4b1c14 100644 --- a/bindings/python/tests/cindex/test_cdb.py +++ b/bindings/python/tests/cindex/test_cdb.py @@ -22,7 +22,7 @@ def test_create(): cdb = CompilationDatabase.fromDirectory(kInputsDir) def test_lookup_fail(): - """Check an assertion is raised when file lookup failed""" + """Check file lookup failure""" cdb = CompilationDatabase.fromDirectory(kInputsDir) assert cdb.getCompileCommands('file_do_not_exist.cpp') == None |