summaryrefslogtreecommitdiff
path: root/tests/unittest_nodes.py
Commit message (Collapse)AuthorAgeFilesLines
* Corrected the parent of function type comment nodesfix_851Ashley Whetter2021-01-311-0/+13
| | | | | | | These nodes used to be parented to their original ast.FunctionDef parent but are now correctly parented to their astroid.FunctionDef parent. Closes #851
* ``is_generator`` correctly considers `Yield` nodes in `AugAssign` nodesClaudiu Popa2021-01-011-0/+11
| | | | | | This fixes a false positive with the `assignment-from-no-return` pylint check. Close PyCQA/pylint#3904
* `FunctionDef.is_generator` properly handles `yield` nodes in `If` tests (#799)Claudiu Popa2020-06-091-0/+13
| | | Close PyCQA/pylint#3583
* `FunctionDef.is_generator` properly handles `yield` nodes in `While` testsClaudiu Popa2020-05-121-0/+12
| | | | Close PyCQA/pylint#3519
* Add missing copyright annotations for the past releasesClaudiu Popa2020-04-271-1/+5
|
* Change test that expected as_string() to return a particular number of newlinesClaudiu Popa2020-03-101-7/+6
|
* Disable test on PyPy since we cannot get 7.2 easily without manually ↵Claudiu Popa2020-03-031-1/+7
| | | | installing it
* Can access positional only and keyword only argument type commentsAshley Whetter2020-01-111-0/+41
|
* ``nodes.Const.itered`` returns a list of ``Const`` nodes, not stringsClaudiu Popa2019-12-151-0/+9
| | | | | | | Because ``Const.itered`` was not returning proper nodes, pylint was failing when trying to infer objects created from those nodes. Close PyCQA/pylint#3306
* Fix as_string for f-strings (#709)Alex Hall2019-10-191-1/+16
| | | | | | | | as_string currently has very poor support for f-strings: Conversions (e.g. !r) and format specifiers (e.g. :.3) are left out. Quotes easily clash leading to syntax errors. Escape sequences such as \n are not handled. Literal braces are not escaped.
* Fix as_string for attribute nodes with integer valuesAlex Hall2019-10-181-0/+8
|
* Fix async function definitions with decorators (#710)Alex Hall2019-10-181-0/+11
|
* Fix ClassDef.as_string() with keyword arguments, especially the metaclass (#707)Alex Hall2019-10-181-0/+26
| | | | | | * Failing test for ClassDef.as_string involving keyword arguments * Fix construction of keyword arguments in ClassDef as_string
* Moved tests out of package directory (#704)Ashley Whetter2019-10-151-0/+1220