summaryrefslogtreecommitdiff
path: root/astroid/test_utils.py
Commit message (Collapse)AuthorAgeFilesLines
* Even more granular copyrights (thanks to copyrite)Claudiu Popa2016-07-221-2/+4
|
* Keep a consistent copyright notice across the board.Claudiu Popa2016-07-191-0/+2
|
* New function, astroid.extract_node, exported out from astroid.test_utils.Claudiu Popa2016-06-291-177/+0
|
* Convert all files to new license headerCeridwen2016-05-171-0/+3
|
* Changed the way how parameters are being builtClaudiu Popa2016-02-131-1/+12
| | | | | | | | | | | | | | | The old way consisted in having the parameter names, their defaults and their annotations separated in different components of the Arguments node. We introduced a new Param node, which holds the name of a parameter, its default value and its annotation. If any of the last two values are missing, then that slot will be filled with a new node kind, Empty, which is used for specifying the lack of something (None could have been used instead, but that means having non-AST nodes in the Arguments node). We're also having support for positional only arguments, for the moment only in raw_building. Close #215
* Fix an undefined-variable in extract_node.Claudiu Popa2015-12-111-1/+1
|
* Enable the warnings in tests through a context managerClaudiu Popa2015-12-111-0/+13
| | | | | | | | Previously, we were enabling blindly all the warnings in tests files through `warnings.simplefilter`, which had the side effect of not taking into account the values of the -W flag. This meant that warnings which should have been silenced, weren't, leading to a huge output when running the tests with Python 3.5.
* Change the call to raw_building.ast_from_builtins.Claudiu Popa2015-11-161-2/+1
|
* Move the bootstrap of the builtins from Manager.clear_cache into testutilsClaudiu Popa2015-11-131-1/+11
| | | | It's needed only by tests.
* Add helper function for reraising exceptionsCeridwen2015-09-211-5/+4
|
* Use six.reraise to avoid losing tracebacks for simple casesCeridwen2015-09-211-1/+5
|
* Remove debug statementsCeridwen2015-08-211-6/+0
|
* Fix isinstance/proxy bug by changing from lazy-object-proxy to wrapt and ↵Ceridwen2015-07-111-1/+0
| | | | minor fixes
* Merge logilab/astroid againCeridwen2015-07-111-17/+1
|\
| * Fix pylint issues.Claudiu Popa2015-07-111-1/+0
| |
| * Add a new convenience API, `astroid.parse`.Claudiu Popa2015-07-111-16/+1
| | | | | | | | | | | | This API can be used to retrieve an astroid AST from a source code string, similar to how ast.parse can be used to obtain a Python AST from a source string. This is the test_utils.build_module promoted to a public API.
* | Node constructors almost finished except for two bugsCeridwen2015-07-081-4/+10
|/
* Merge all test data into a single package per Python version.Torsten Marek2014-11-091-5/+7
| | | | | | | | | Also modernized a lot of test code. This makes it possible to run the tests from both the base directory of the project as well as the astroid package. Since the packages have the same name for Python 2 and 3, there is less version-dependent code in the tests.
* Fix some of the issues around running test discover from the base directory ↵Torsten Marek2014-11-091-0/+3
| | | | of the project.
* Move all astroid modules into a its own directory, which is now the package.Torsten Marek2014-11-081-0/+213
python setup.py develop now works.