summaryrefslogtreecommitdiff
path: root/test
Commit message (Collapse)AuthorAgeFilesLines
* Change indentation of unittest_raw_building.py tab to space.devAndroWiiid2013-11-041-38/+38
|
* Update unittest_manager and add some tests for raw_building.py file.AndroWiiid2013-10-292-7/+53
|
* Add some tests for AstroidManager class in unittest_manager.pyAndroWiiid2013-10-241-20/+104
|
* fix some test failures with pypy platform (one remaining)Sylvain Th?nault2013-10-182-4/+12
|
* Update some function definitions in py2stdlib's hashlib stub moduleTorsten Marek2013-07-241-0/+39
| | | | | | and make sure AST transforms without a predicate always match. Test all this in a new testcase.
* rename all astroid_from* method, introduced by sed, into ast_from*Sylvain Th?nault2013-07-243-21/+21
|
* Properly recognize methods annotated with abc.abstract{property,method}Torsten Marek2013-06-201-0/+24
| | | | as abstract.
* namedtuple support using extended transformation function features. Closes #8766Sylvain Th?nault2013-06-181-0/+17
|
* [transforms] allow transformation functions on any nodes, not only modulesSylvain Th?nault2013-06-181-1/+1
|
* Fix test_generator_attributes for python3Julien Cristau2013-06-171-1/+4
| | | | The next() method was renamed __next__()
* rename the project astroidDavid Douard2013-06-1712-576/+576
|
* Fix unittest that was broken due to a change in pylint (BaseTokenChecker -> ↵Torsten Marek2013-06-171-1/+1
| | | | BaseRawChecker).
* as_string/repr_tree code cleanup: enhance the doc a bit + regroup codeSylvain Th?nault2013-04-112-11/+11
| | | | | | | - move _repr_tree from bases.py to as_string.py - rename as_string function to to_code, though public API Node.as_string is left unchanged for now
* enhanced generator support. Closes #124340Sylvain Th?nault2013-04-111-6/+8
|
* [test] use @require_version when possibleSylvain Th?nault2013-03-294-19/+12
|
* import cleanupsSylvain Th?nault2013-03-291-4/+4
|
* minor cleanups: drop copyright by me, update others to 2013, droip those in ↵Sylvain Th?nault2013-03-2825-382/+26
| | | | dumb test data files, delete some trailing whitespaces
* unify BUILTINS_NAME / BUILTINS_MODULE into astng.bases.BUILTINSSylvain Th?nault2013-03-285-31/+29
|
* reintroduce spaces necessary for test_module_as_stringSylvain Th?nault2013-03-282-8/+12
|
* Add support for inference of subscript operations on dict literals. Closes ↵Torsten Marek2013-03-271-0/+5
| | | | | | #123074 actually fix Dict.getitem and enhance infer_subscript
* Set literals should be treated as inference leaves. Closes #47957Torsten Marek2013-03-271-1/+13
|
* Fix inference for generator methods to correctly handle yields in lambdas. ↵Torsten Marek2013-03-272-6/+22
| | | | Closes #123068
* use lgc.testlib to get py2.6 unittest2 compatSylvain Th?nault2013-02-271-5/+6
|
* [test] fix unittest2 deprecation warningsSylvain Th?nault2012-11-168-351/+314
|
* py3k test fixes. Closes #109988Sylvain Th?nault2012-11-163-22/+6
|
* test and fix absolute import handling. Closes #106191Sylvain Th?nault2012-10-054-3/+19
|
* fix function fromlineno when some decorator is splited on multiple lines. ↵Mark Gius2012-09-201-0/+18
| | | | Closes #50395
* Fix python 3 crash on importing from a non existing module. Closes #83749FELD Boris2012-07-311-0/+28
| | | | | | Pb is actually silented in python 2 since YES objet are seen as iterable since next() is seen as a proper attribute (returning itself, see _Yes.__getattribute__), while it becomes a function in python 3.
* Make Starred node extends ParentAssignTypeMixin as it can be part of Assign ↵FELD Boris2012-07-251-0/+46
| | | | ast node in python-3k. Closes #83138.
* test: don't depend on the way test is startedSylvain Th?nault2011-12-081-1/+1
|
* Make sure that the name attribute on lambda nodes is defined,Torsten Marek2011-12-081-0/+6
| | | | | otherwise getting the qname of a lambda node crashes with an attribute error.
* closes #77253: provide a way for user code to register astng transformersSylvain Th?nault2011-09-291-1/+2
|
* copy context path when cloning inference context, else we may skip undesired ↵Sylvain Th?nault2011-09-291-0/+11
| | | | inference branches. closes #77187
* closes #77188: support lgc.decorators.classpropertySylvain Th?nault2011-09-271-0/+15
|
* cosmetic changes: update/fix copyright and comments, d-t-wSylvain Th?nault2011-09-271-13/+1
|
* we actually dropped support for python < 2.5 in 0.21Sylvain Th?nault2011-09-271-11/+0
|
* closes #74748: getitem protocal should return Const node, not the bare ↵Sylvain Th?nault2011-09-071-0/+4
| | | | | | | | | | | | | python value This one is cute. It's a fix for a crash that occurs on code like "any string literal"[0].upper() due to the fact that the extracted string literal is not properly wrapped, but returned as a naked string object. (patch by google)
* closes #74746: should return empty module when __main__ is importedSylvain Th?nault2011-09-071-0/+5
| | | | | | | | | | | | Fixes a problem when a module imports __main__. While this is benign normally (pylint just imports itself, and exposes its __main__ module to astng, which is wrong, but not fatal), this led to a crash in our deployed, standalone pylint version. The fix is now that a completely empty module is returned, since neither the linter nor the module in question can make any assumptions about __main__. (patch by google)
* dtwSylvain Th?nault2011-07-111-11/+11
|
* py3k: __builtin__ module renamed to builtins, we should consider this to ↵Sylvain Th?nault2011-07-083-22/+23
| | | | properly build ast for builtin objects
* test and fix relative import inference pb, detected with python 3Sylvain Th?nault2011-07-081-3/+35
|
* fix file encoding detection with python2.x (closes #70494)alain lefroy2011-07-081-0/+12
| | | | | | | | | | | | | file encoding declaration shall be in a magic *comment*. from PEP0263:: More precisely, the first or second line must match the regular expression "coding[:=]\s*([-\w.]+)". The first group of this expression is then interpreted as encoding name. If the encoding is unknown to Python, an error is raised during compilation. There must not be any Python statement on the line that contains the encoding declaration.
* closes #70565: absolute imports treated as relative (patch by Jacek Konieczny)Sylvain Th?nault2011-07-082-0/+12
|
* clear ast cache to remove test inter-dependancySylvain Th?nault2011-01-111-1/+2
|
* cleanupSylvain Th?nault2011-01-113-6/+4
|
* change ASTManager cache attribute to astng_cache so it doesn't sound ↵Sylvain Th?nault2011-01-112-4/+4
| | | | protected (actually used externally)
* add support for object.__new__ (base patch provided by Chris Torek)Sylvain Th?nault2011-01-051-0/+17
| | | | | | | | | | The builtin object.__new__ function takes a class and returns an object of that type, i.e., we should infer the result has whatever type we can find from the first argument. To make this work (with Python2.5 at least), we need to note that built in functions whose __module__ is None are really in the __builtin__ module.
* typo in node_classes; py3k - fix manager test (can't iterate on Project)Emile Anclin2010-12-151-2/+1
|
* test: only test encoding for python2xEmile Anclin2010-12-152-99/+38
| | | | - remove also test/test_encoding.py (it's already in unittest_builder)
* mergeEmile Anclin2010-12-151-0/+40
|\