summaryrefslogtreecommitdiff
path: root/astroid/tests/unittest_modutils.py
Commit message (Collapse)AuthorAgeFilesLines
* Remove test that does not work actually work consistently on all Python versionsClaudiu Popa2019-01-141-3/+0
|
* Make sure the test does not crash if the directory already existsClaudiu Popa2018-12-301-4/+7
|
* Initial formatting of astroidClaudiu Popa2018-10-021-106/+124
|
* Update the copyright noticesastroid-2.0Claudiu Popa2018-07-151-0/+4
|
* Include abspath of sys.path on searches at load_from_moduleMario Corchero2018-07-051-0/+32
| | | | | | | | | | At the moment `load_from_module` is resolving all paths in `sys.path` to validate that the module being import is in a folder part of the path. This is done to resolve symlinks. This can be an issue though it both the file being imported and the path in `sys.path` resolve to different locations. Even if the symlinks are importable, the resolution of the paths in `sys.path` might not.
* Fix import of symlinks outside of path with modutils (#546)Mario Corchero2018-05-151-0/+22
| | | | | | | | | Makes load_module_from_file able to import files within the path that are just a symlink to a file outside of the path. modutils is using realpath at the moment which will resolve the symlink and don't allow the import as the file is detected outside of the available paths. By checking both abspath and realpath this patches add support for such scenarios.
* Fix some pylint errors over the code base.Claudiu Popa2016-08-241-1/+1
|
* Move the spec finder under a new namespace, interpreter._import.Claudiu Popa2016-08-241-6/+11
|
* Even more granular copyrights (thanks to copyrite)Claudiu Popa2016-07-221-2/+6
|
* Keep a consistent copyright notice across the board.Claudiu Popa2016-07-191-0/+2
|
* Remove superfluous boilerplate the first regex missedCeridwen2016-05-171-17/+0
|
* Convert all files to new license headerCeridwen2016-05-161-0/+3
|
* Don't look for namespace packages implicitly into functions doing concrete ↵Claudiu Popa2016-05-101-14/+0
| | | | imports.
* Build a dummy module object for namespace directories and add a test for ↵Claudiu Popa2016-05-091-0/+1
| | | | multiple directories contributing to the same namespace.
* Implicit namespace package support for modpath_from_file for Python 3.3+.Claudiu Popa2016-05-091-0/+13
|
* Switch to a spec finder protocol for finding files or packagesClaudiu Popa2016-05-081-6/+6
|
* Add a test for is_standard_module with datetime.Claudiu Popa2015-12-151-0/+5
| | | | | This is an interesting example, since datetime, on pypy, is under lib_pypy, rather than the usual Lib directory.
* Cleanup pylint's warnings over astroid codebaseClaudiu Popa2015-12-141-47/+35
| | | | | | | | | | Some of the messages were disabled in pylintrc, since they're not very useful for our case. Other parameters, such as the number of arguments / statements / attributes etc were configured so that they won't be too restrictive for our codebase, since making the code to respect them right now requires too much development changes, which is not justified by the end result. Closes issue #284.
* MergeClaudiu Popa2015-07-251-17/+17
|\
| * Get rid of logilab.common in unittest_modutils.py.Florian Bruhin2015-07-251-17/+17
| | | | | | | | | | | | | | | | It was only used as an example package with subpackages - now we use xml.etree.ElementTree for those checks instead. --HG-- branch : no-logilab-common
* | Cleanup a test.Claudiu Popa2015-07-251-7/+5
| |
* | CR fixesRadosław Ganczarek2015-07-251-2/+1
| |
* | Proper argument nameRadosław Ganczarek2015-07-251-3/+3
| |
* | Add option to search for all Python files in get_module_filesRadosław Ganczarek2015-07-251-0/+11
|/
* Fix pylint warnings over astroid, update the list of disabled messages in ↵Claudiu Popa2015-05-191-3/+1
| | | | pylintrc.
* Use realpath where it is necessary.Claudiu Popa2015-03-301-2/+2
|
* Fix the test.Claudiu Popa2015-03-301-2/+2
|
* drone.io debug.Claudiu Popa2015-03-301-2/+1
|
* Add debug output for drone.ioClaudiu Popa2015-03-301-0/+1
|
* Add some fixes which enhances the Jython support.Claudiu Popa2015-03-301-3/+9
| | | | | | | 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.
* Remove all unused variables from the code base.Claudiu Popa2015-01-291-2/+2
|
* Remove all occurences of bad-whitespace.Claudiu Popa2015-01-101-3/+3
|
* Recognize modules loaded from $SYS_PREFIX\DLLs as standard library modules ↵Torsten Marek2014-11-161-0/+1
| | | | on Windows.
* Properly handle case-insensitive filesystems in modutils.Torsten Marek2014-11-161-3/+0
|
* Don't use self imports in tests since those are susceptible to CWD changes.Torsten Marek2014-11-121-2/+2
|
* Disable test_4 for Python 2, because imp.find_module is broken there as well.Claudiu Popa2014-11-141-2/+2
|
* Merge all test data into a single package per Python version.Torsten Marek2014-11-091-56/+44
| | | | | | | | | 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.
* Never load C extensions that are not from the standard library and also ↵Torsten Marek2014-11-091-9/+5
| | | | | | never load any compiled Python files. Fixes pylint issue #347.
* Move all astroid modules into a its own directory, which is now the package.Torsten Marek2014-11-081-0/+280
python setup.py develop now works.