Daniel Hahler
afb2755c27
Add extras_require=testing
2018-09-22 10:03:12 +02:00
Daniel Hahler
56bd795100
_get_virtual_env_from_var: use safe=False
...
Without this creating an env from VIRTUAL_ENV will always silently fail
if it is not the same/current environment.
2018-09-16 11:37:22 +02:00
Daniel Hahler
cdb760487b
tests: venv_path: use session scope
2018-09-16 11:24:27 +02:00
Daniel Hahler
fc9a55b042
jedi/api/environment.py: minor flake8 fix
2018-09-16 11:22:02 +02:00
Daniel Hahler
1cf5b194ca
jedi.api.environment._SUPPORTED_PYTHONS: add 3.7
...
The grammar is available in parso already, and it works in general.
2018-09-15 16:58:07 +02:00
Dave Halter
84b07a8809
Removing a test from doctests, becaues it shouldn't be one
2018-08-26 03:09:46 +02:00
Dave Halter
6c555e62aa
Refactor argument clinic usage
2018-08-26 03:02:58 +02:00
Dave Halter
d6306a06a4
With the recent changes one performance optimization got lost
2018-08-07 02:47:25 +02:00
Dave Halter
8fc2add242
FunctionExecutionContext should use the parent if possible
2018-08-06 12:49:31 +02:00
Dave Halter
4a593f9693
Use anonymous instance arguments in a different way
2018-08-06 11:19:29 +02:00
Dave Halter
38a22a4ae8
Move some anonymous instance function execution stuff
2018-08-05 23:37:46 +02:00
Dave Halter
10ecb77673
Get rid of InstanceFunctionExecution, because it's really not needed
2018-08-05 23:26:15 +02:00
Dave Halter
357c86ad9c
Use the InstanceArguments for super as well
2018-08-05 14:58:35 +02:00
Dave Halter
8cae517821
Use InstanceArguments directly and not via InstanceFunctionExecution
2018-08-05 14:34:44 +02:00
Dave Halter
0101fdd9da
Remove old garbage code
2018-08-05 14:19:18 +02:00
Dave Halter
e17d7f5d42
Don't use arguments that are not needed
2018-08-05 14:17:46 +02:00
Dave Halter
7d16a35693
Also move the remaining get_params to get_executed_params
...
Remove the class's get_params entirely, because it is apparently not needed and contained a funny return.
2018-08-05 13:58:06 +02:00
Dave Halter
1456a156a6
get_params -> get_executed_params where possible
2018-08-05 13:53:57 +02:00
Dave Halter
3d55b2d826
Subprocess error reporting improvements
2018-08-05 12:50:17 +02:00
Dave Halter
1547177128
Fix a recursion issue about compiled objects
2018-08-04 23:20:51 +02:00
Dave Halter
bd43608f98
Use a CompiledInstanceNameFilter that wraps the class name as well
2018-08-04 13:10:14 +02:00
Dave Halter
72f2a9e4a5
Prefer Python 3 import over 2
2018-08-04 12:07:41 +02:00
Dave Halter
b91203820c
Now it's actually possible to specify a pytest environment for the same Python version
2018-08-04 02:00:13 +02:00
Dave Halter
71572e63cd
Note that Python 3.3 support was dropped in Changelog
2018-08-04 00:49:45 +02:00
Hugo
7c9f24a18e
Drop support for EOL Python 3.3 ( #1019 )
2018-08-04 00:40:00 +02:00
Dave Halter
9ca7b30e38
Rewrite the pyc test
2018-08-03 23:59:55 +02:00
Dave Halter
fd8f254ce1
Fix an issue with stderr debugging of subprocesses
2018-08-03 23:51:58 +02:00
Dave Halter
1c76359291
stderr of the child processes should be printed in debug output
...
This fixes #1169 . It might have a bit of a different intention, but at least it's now possible to see output of the subprocess and it's not just a black hole.
2018-08-03 13:35:21 +02:00
Dave Halter
ccb460b433
Use close_fds for posix.
2018-08-03 13:08:07 +02:00
Dave Halter
30d14ea016
Remove some redundant code
2018-08-03 12:33:35 +02:00
Dave Halter
bbb1502e06
Use names of classes to infer names of instances
2018-08-03 12:23:54 +02:00
Dave Halter
f34a9281b9
Don't have execute and execute_evaluated on name
2018-08-03 11:34:33 +02:00
Dave Halter
95a1a69771
Fix an issue where __ prefixed variables where not hidden when accessed from a class
...
Everything worked well when looking at it from an instance perspective.
2018-08-03 11:05:49 +02:00
Dave Halter
1a4be5c91c
Bound methods are now working correctly in all Python versions. Therefore a test was wrong.
2018-08-03 00:25:25 +02:00
Dave Halter
40d3abe2b2
Remove a print in tests
2018-08-03 00:25:25 +02:00
Dave Halter
f25310e0b9
BoundMethods now have access to the function that they are using
2018-08-03 00:25:25 +02:00
Dave Halter
e576457a43
Remove another usage of is_class where it's not needed
2018-08-03 00:25:25 +02:00
Dave Halter
a1314ac3c1
FunctionContext should be created from a unified interface
2018-08-03 00:25:25 +02:00
Dave Halter
481e6bcff0
Don't create a FunctionExecutionContext if it's not used.
2018-08-03 00:25:25 +02:00
Dave Halter
9ff5050d01
Use TreeContext in a good way
2018-08-03 00:25:25 +02:00
Justin Moen
9a4a96b453
Fix broken link in documentation
2018-08-02 10:43:15 +02:00
Dave Halter
e7a019e628
The implicit namespace package test from 4b276bae87 can only be used for Python 3.4+
2018-07-21 11:51:41 +02:00
Dave Halter
4b276bae87
The import resolution for namespace packages was wrong
...
With this change we can now include all parents of the script, which will make
relative imports always work.
Now the whole meta_path is scanned and not just importlib's PathFinder.
Fixes #1183 .
2018-07-21 00:16:10 +02:00
Dave Halter
ad5170a37a
Add a way to use the interpreter environment for tests
2018-07-20 19:16:02 +02:00
Dave Halter
d292333dab
MergedExecutedParams -> DynamicExecutedParams
2018-07-18 10:02:57 +02:00
Dave Halter
a408fb3211
Fix a recursion error, fixes #1173
2018-07-18 10:01:41 +02:00
Dave Halter
3cabc4b969
Remove two recursion tests again that will belong into a commit at a point where it is not failing anymore
2018-07-17 18:34:42 +02:00
Dave Halter
fb360506fb
Don't merge params if it's just one param
2018-07-17 09:53:26 +02:00
Dave Halter
fe1799d125
Add a repr for AnonymousArguments
2018-07-17 09:48:27 +02:00
Dave Halter
733919e34c
Fix a doctest
2018-07-17 00:47:42 +02:00