summaryrefslogtreecommitdiff
path: root/astroid/tests/resources.py
Commit message (Collapse)AuthorAgeFilesLines
* Add some fixes which enhances the Jython support.Claudiu Popa2015-03-301-1/+1
| | | | | | | The fix mostly includes updates to modutils, which is modified in order to properly lookup paths from live objects, which ends in $py.class, not pyc as for Python 2, Closes issue #83.
* Fix the test's astroid cache problem.Claudiu Popa2015-01-151-0/+24
| | | | | | | | | | | | | | | | | | There were two problems until now: * first, the transformed builtin object was deleting during clear_cache, leaving the next tests to use the untransformed tests, which yielded InferenceErrors. * after the first problem was fixed, another problem with CONST_PROXY occurred, since it was creating a new builtins object, without the builtins transformations applied, which was used for creating the const classes. The problem was that even replacing the builtins instance in astroid_cache, InferenceErrors occurred, because the const classes were already built and they were referencing the untransformed builtins. That's why _astroid_bootstrapping allows to receive a new builtins object, which is passed properly by the tests.
* Clean the path importer cache correctly, do not nuke entries for the ↵Torsten Marek2014-11-171-1/+1
| | | | standard library.
* Merge all test data into a single package per Python version.Torsten Marek2014-11-091-0/+48
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.