summaryrefslogtreecommitdiff
path: root/astroid/tests/testdata/python2
Commit message (Collapse)AuthorAgeFilesLines
* Add two new exceptions, AstroidImportError and AstroidSyntaxError.Claudiu Popa2015-12-061-0/+1
| | | | | | | | They are subclasses of AstroidBuildingException and are raised when a module can't be imported from various reasons. Also do_import_module lets the errors to bubble up without converting them to InferenceError. This particular conversion happens only during the inference.
* Replace __future__.print_statement with print_functionprint_statementJohn Vandenberg2015-10-191-1/+1
| | | | | | 1c35a97 fixed Python 2 only print statements, and imported a mix of __future__.print_function and __future__.print_statement. 1826d98 fixed most of them, however this one still remains.
* MergeClaudiu Popa2015-07-251-0/+0
|\
| * Add option to search for all Python files in get_module_filesRados?aw Ganczarek2015-07-251-0/+0
| |
* | Get rid of logilab.common.shellutils in test data.Florian Bruhin2015-07-251-1/+1
|/ | | | | Instead of logilab.common.shellutils.ProgressBar we use astroid.node_classes.Name now.
* astroid.inspector was moved to pylint.pyreverse.Claudiu Popa2015-06-172-45/+0
| | | | | | | This was moved since it is the only known client of this module. No other change was made to the exported API. This doesn't go through a normal deprecation cycle, since I really want to clean it up at a faster pace.
* Fix failing tests.Claudiu Popa2015-06-022-7/+6
|
* print_statement -> print_function.fix-python3-testsOmer Katz2015-06-023-3/+3
|
* Fixed syntax errors in Python 3.Omer Katz2015-06-017-15/+16
|
* Add the ability to optimize small ast subtrees.Claudiu Popa2015-01-181-0/+1051
| | | | | | | | The first use of the AST peephole optimizer is the optimization of multiple BinOp nodes. This removes recursivity in the rebuilder when dealing with a lot of small strings joined by the addition operator. which are now precomputed to the final string. Closes issue #59.
* Merge all test data into a single package per Python version.Torsten Marek2014-11-0940-0/+557
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.