micbou
16b64f59b7
Fix transform_path_to_dotted tests on Windows
...
Compiled modules end with the .pyd extension on Windows.
2019-05-21 12:07:17 +02:00
Dave Halter
85fc799d62
Reintrodue a piece of sys_path code with test
...
This piece was thought to not be needed. It turns out it is
2019-04-08 10:05:12 +02:00
Dave Halter
3d5b13c25e
Test function rename
2019-04-08 01:56:24 +02:00
Dave Halter
cccbf50a0e
Fix an issue with transform_path_to_dotted
2019-04-08 01:56:05 +02:00
Dave Halter
e50f65527d
Somehow removed a test when merging
2019-04-08 01:34:12 +02:00
Dave Halter
d6232e238a
Merge branch 'master' into ts2
2019-04-05 15:44:25 +02:00
Dave Halter
b6612a83c3
WIP import improvement, getting rid of bad old code
2019-03-21 23:22:19 +01:00
micbou
77a7792afc
Fix transform_path_to_dotted tests on Windows
...
Convert paths to normalized absolute ones in transform_path_to_dotted
tests.
2019-03-16 17:34:00 +01:00
Dave Halter
f93134d4f8
Two simple test fixes
2019-03-08 16:23:37 +01:00
Dave Halter
467c2e5def
Merge branch 'master' into typeshed
...
There were quite a few conflicts, because there were two rewrites of the path
to dotted function.
2019-03-01 10:13:16 +01:00
Dave Halter
1a32663f85
The calculation of dotted paths from normal paths was completely wrong
2019-02-28 09:42:56 +01:00
Dave Halter
fcda62862c
Fix calculate_dotted_path_from_sys_path. It was broken beyond stupid.
2018-12-18 09:30:49 +01:00
Dave Halter
d06e55aab5
The sys path might be lazy or not in a venv
2018-07-10 10:07:18 +02:00
Dave Halter
27419be56d
Fix some issues with the latest changes
2018-04-12 14:24:18 +02:00
Dave Halter
81d8c49119
Write a test for venvs
2018-04-08 23:04:57 +02:00
micbou
65a8ec6abc
Improve venv_and_pths test
...
Python is not necessarily installed in /usr/bin. Execute Python to find the
real prefix.
2018-03-24 20:52:51 +01:00
micbou
51b44032bd
Fix paths from assignment test on Windows
2018-03-23 00:35:57 +01:00
Dave Halter
94ce54e776
Merge with master again
...
Some bugs were still present in master
2018-01-20 21:45:55 +01:00
Dave Halter
20d64cf2b3
Fix issues with a recent refactoring
2018-01-20 21:21:58 +01:00
Dave Halter
d986c44b94
Merge with master
...
The deprecation of Python2.6 and the insertion of environments made it quite difficult to merge.
2018-01-20 19:32:59 +01:00
Hugo
cc623218e5
Replace function call with set literal
2018-01-07 10:40:06 +02:00
Dave Halter
f17afc6519
Try to avoid the pth tests not working because of the created virtualenv in tox
2017-12-30 03:15:28 +01:00
Dave Halter
e2629b680f
Test if virtualenvs and pth files work
2017-12-30 00:02:14 +01:00
Dave Halter
5fc755b0cf
stdlib fixture conversions
2017-12-29 19:13:15 +01:00
Dave Halter
51d2ffb078
Use sys path mostly from project and move some sys path stuff around.
2017-10-05 10:06:28 +02:00
Dave Halter
e0485b032e
Fix some stuff to make parso work again.
2017-06-02 00:00:31 +02:00
Dave Halter
eaa5100372
Removed Scope.statements from the parser tree.
2017-04-28 18:18:58 +02:00
Dave Halter
5b9e5f96aa
Merge with master.
2017-01-02 13:05:45 +01:00
Dave Halter
ee1f077014
Some test refactorings.
2016-12-03 14:32:00 +01:00
Daniel Hahler
f7f966805f
sys_path: prepend/prefer egg-link files
...
With `pip install -e` the generated .egg-link file gets preferred over
any normally installed distribution, and `pip uninstall` will first
remove the egg-link before the normal package.
2016-10-14 14:18:09 +02:00
Dave Halter
c4906e0e3f
Rework the parser so we can use arbitrary start nodes of the syntax.
...
This also includes a rework for error recovery in the parser. This is now just possible for file_input parsing, which means for full files.
Includes also a refactoring of the tokenizer. No more do we have to add an additional newline, because it now works correctly (removes certain confusion.
2015-12-20 22:25:41 +01:00
Dave Halter
306d274a3d
Merge dev into linter.
2015-11-10 21:52:18 +01:00
Dave Halter
84c43bf2dc
Correct issues with slices and some more subtle bugs.
2015-11-01 21:30:41 +01:00
immerrr
cc139e8f70
evaluate.site: copy/adapt site-packages related functionality from stdlib
2015-10-26 13:03:42 +03:00
immerrr
da4dbe81a9
sys_path: order egg-link files for reproducible test results
2015-10-26 13:03:42 +03:00
immerrr
f500457100
sample_venvs: exclude venvs dir from py.test discovery
2015-10-26 13:03:42 +03:00
immerrr
4eb3cf7921
Improve virtualenv support & egg-link resolution
...
- add sys_path= kwarg to Script & Evaluator constructors
- store sys_path for each evaluator instance
- replace get_sys_path with get_venv_path
- get_venv_path: use addsitedir to load .pth extension files
- get_venv_path: look for egg-link files in all directories in path
2015-10-26 13:03:42 +03:00
Daniel Hahler
8621aae73c
Add any .egg-link paths from VIRTUAL_ENV to sys.path
...
Adding test_get_sys_path required factoring out
`_get_venv_sitepackages`, because `sys.version_info` cannot be mocked
apparently.
2015-01-25 21:35:09 +01:00
Dave Halter
528b325c39
Remove precedence tests. They are not needed anymore, since precedence is now handled by the parser itself.
2014-12-07 14:41:57 +01:00
Dave Halter
fdc637c5c4
Add a forgotten test module, test_sys_path.py and fix Python2/3 compatibility issues.
2014-09-09 17:08:22 +02:00