summaryrefslogtreecommitdiffstats
path: root/clang/bindings/python/tests/cindex/test_code_completion.py
Commit message (Collapse)AuthorAgeFilesLines
* [CodeComplete] Update python tests after r360042Ilya Biryukov2019-05-061-2/+2
| | | | llvm-svn: 360048
* [python] Support PathLike filenames and directoriesMichal Gorny2018-11-101-0/+28
| | | | | | | | | | | | | | | Python 3.6 introduced a file system path protocol (PEP 519[1]). The standard library APIs accepting file system paths now accept path objects too. It could be useful to add this here as well for convenience. [1] https://www.python.org/dev/peps/pep-0519 Authored by: jstasiak (Jakub Stasiak) Differential Revision: https://reviews.llvm.org/D54120 llvm-svn: 346586
* [python] [tests] Support overriding library path via environmentMichal Gorny2018-10-111-0/+5
| | | | | | | | | | | | | | | | | Support a new CLANG_LIBRARY_PATH environment variable for the Python binding tests. This variable can be used to force the bindings to load libclang.* from a specific directory. I plan to use this when integrating Python binding tests with the CMake build system. Currently, those tests load libclang.so from default search paths, so I would have to rely on platform-specific mechanics such as LD_LIBRARY_PATH. Instead of copying the whole logic necessary to handle platform differences into yet another place, it's easier to just add a dedicated variable for this purpose. Differential Revision: https://reviews.llvm.org/D52806 llvm-svn: 344240
* [python] [tests] Update test_code_completionMichal Gorny2018-09-241-4/+4
| | | | | | | | Update expected completions to match output generated by clang-7.0. Differential Revision: https://reviews.llvm.org/D50171 llvm-svn: 342897
* [python] [tests] Rewrite to use standard unittest moduleMichal Gorny2017-11-101-40/+44
| | | | | | | | | | | | | | | | | | | | | | | | | Rewrite the tests from using plain 'assert' mixed with some nosetests methods to the standard unittest module layout. Improve the code to use the most canonical assertion methods whenever possible. This has a few major advantages: - the code uses standard methods now, resulting in a reduced number of WTFs whenever someone with basic Python knowledge gets to read it, - completely unnecessary dependency on nosetests is removed since the standard library supplies all that is necessary for the tests to run, - the tests can be run via any test runner, including the one built-in in Python, - the failure output for most of the tests is improved from 'assertion x == y failed' to actually telling the values. Differential Revision: https://reviews.llvm.org/D39763 llvm-svn: 317897
* [python] [tests] Update priority values in code completion testMichal Gorny2017-11-091-2/+2
| | | | | | | | | | The priority for destructors and operators was reduced in r314019. Adjust the values used in the test appropriately to fix the test failure. Differential Revision: https://reviews.llvm.org/D39838 llvm-svn: 317828
* Python bindings: Add missing availability kind.Benjamin Kramer2012-10-071-8/+48
| | | | | | Patch by Leo Liu, test case by me. llvm-svn: 165374
* Add bindings for clang_getCompletionBriefComment to cindex.py.Dmitri Gribenko2012-09-151-0/+35
llvm-svn: 163966
OpenPOWER on IntegriCloud