Dave Halter
fc315108f0
Get rid of a cwd to tmpdir, because with the subprocess it doesn't behave the same depending on which tests you run first
2018-01-20 21:56:56 +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
Dave Halter
877383b110
Add a test to avoid encoding issues. Fixes #1003
2018-01-20 18:28:29 +01:00
Dave Halter
9b5e3447d9
Make the new project API fully work in tests
2018-01-17 09:54:11 +01:00
Hugo
3e8cd9f128
Use set literals
2018-01-07 10:40:36 +02:00
Hugo
cc623218e5
Replace function call with set literal
2018-01-07 10:40:06 +02:00
Hugo
8cf708d0d4
Remove redundant parentheses
2018-01-07 10:40:06 +02:00
Dave Halter
db1a4415b3
Some tests that involved jedi were actually a bit wrong and only worked in certain environments.
2018-01-05 00:48:40 +01:00
Dave Halter
3d39ffd16c
Skipping was done wrong
2018-01-03 19:45:46 +01:00
Dave Halter
9c5ce5a8d2
Try to use the virtual env that was defined in the VIRTUAL_ENV variable, if possible.
2018-01-02 01:28:02 +01:00
Dave Halter
bcb3f02a01
If a subprocess gets killed by an OOM killer or whatever it should respawn and raise an InternalError
2018-01-02 00:56:22 +01:00
Dave Halter
7ff6871548
Merge Subprocess and CompiledSubprocess
2018-01-02 00:33:30 +01:00
Dave Halter
927aa2bd91
Try to recover from errors that are happening in subprocesses
2018-01-02 00:24:15 +01:00
Dave Halter
4514373de6
Use unicode strings in test to pass some tests in Python 2
2017-12-30 04:36:59 +01:00
Dave Halter
7de04fb28d
Move the module name searching to the subprocess
2017-12-29 21:10:00 +01:00
Dave Halter
68381e09c9
Move the last test out of test_regressions and delete the file
...
This also deletes a test that probably has become useful because the issue it tested was caused by code that doesn't exist anymore
2017-12-29 20:38:30 +01:00
Dave Halter
01ffd2f981
Move most of the regression tests into other test files
2017-12-29 20:26:53 +01:00
Dave Halter
ff4f7d5471
Move test_integration_keywrod to test_api/test_keyword
2017-12-29 20:05:37 +01:00
Dave Halter
da211aa63d
Use the Script fixture more generally
2017-12-29 18:40:17 +01:00
Dave Halter
38cacba385
Differentiate between different Python versions in a specific test
2017-12-29 16:09:48 +01:00
Dave Halter
5efd67758e
Start replacing Script calls with a fixture
...
This is important to migrate all tests to specific fixtures.
2017-12-29 15:51:16 +01:00
Dave Halter
a117f9f2e7
Avoid execution of Jedi in test setup
...
This makes testing Jedi potentially faster.
2017-12-24 03:25:43 +01:00
Dave Halter
96a67f9a4c
Start using the correct parser for each environment
2017-12-19 19:19:35 +01:00
Dave Halter
1c62db04ba
Make it possible to get the right version parser for a certain environment
2017-12-16 00:30:47 +01:00
Dave Halter
d0732e58cc
api.virtualenv -> api.environment
2017-12-15 18:20:35 +01:00
Dave Halter
0d7f93c019
DefaultEnvironment -> get_default_environment
2017-12-15 18:13:21 +01:00
Dave Halter
3cd5fa3c20
Better support for searching python environments
2017-12-15 12:19:52 +01:00
Dave Halter
8003d30b06
Fix the Python 2.7 tests
2017-12-11 21:39:30 +01:00
Dave Halter
42fb93dc01
Use the subprocess access to create acceses
2017-12-06 15:06:48 +01:00
Dave Halter
47114178e9
Fake context python code is now not the base for a lot of things anymore. It just gets executed.
2017-11-28 18:26:12 +01:00
Dave Halter
e71f0062dd
Get a lot of tests passing
2017-11-26 17:48:00 +01:00
Dave Halter
7263d8565b
Add an access abstraction (only array tests work, yet)
...
The access abstraction will be the new way of accessing builtin objects. This way it will be easier to move that to another process
2017-11-25 19:47:49 +01:00
Dave Halter
1a7fc512bc
Eliminate CompiledObject.type
2017-11-23 21:50:18 +01:00
Dave Halter
87452639ad
Exceptions now also work over the subprocess.
2017-11-17 01:54:05 +01:00
Dave Halter
4a7d715a57
Finally got compiled_objects and the access to them working
2017-11-17 01:42:27 +01:00
Dave Halter
73576b2a8b
Progress when working with evaluators
2017-11-17 01:21:38 +01:00
Dave Halter
4136dcaf08
Make the subprocesses work and return the right sys paths for the different versions
2017-11-15 08:58:13 +01:00
Dave Halter
96149d2e6a
Make it possible to connect to a subprocess to get the sys path
2017-11-14 18:25:37 +01:00
Dave Halter
bedff46735
Simplify usages. It should also work way better, now.
2017-10-08 20:13:24 +02:00
Dave Halter
21531abd1e
Fix a small test error
2017-10-05 20:43:31 +02:00
Dave Halter
7019ca643e
Remove a possible security issue
...
sys paths are not executed anymore and use static analysis now.
2017-10-05 19:57:50 +02:00
Dave Halter
d6a04b2928
Remove the deprecated attributes from Jedi.
2017-09-20 18:27:29 +02:00
Dave Halter
9dd2027299
Way better support for instantiated classes in REPL
...
Fixes several issues:
- It was not possible to correctly trace where instances were coming from in a
REPL. This led to them being pretty much ignored.
- Instances were then just treated as classes and not as actual instances in
MixedObjects. (However since they were ignored in the first place this
wasn't really an issue).
- Avoiding the repr bug https://github.com/python/cpython/pull/2132/files in
Jedi is working a bit differently. We're just never accessing Objects
directly. This should work around 99.99% of the cases were people are using
this stuff.
Fixes #872
2017-09-15 01:55:18 +02:00
Dave Halter
63edbdcc5b
Better context completions for finally/except/else/elif
...
Fixes #837
2017-09-15 00:48:56 +02:00
Dave Halter
ab84030ad2
full_name was buggy when used on import error names
...
Fixes #873 .
2017-09-14 20:41:25 +02:00
Dave Halter
4a544c29ea
Fix a follow_imports (goto) issue.
2017-09-11 23:32:10 +02:00
Dave Halter
619acbd2ca
Goto didn't work well on imports in __init__.py files.
...
Fixes #956 .
2017-09-11 21:48:37 +02:00
Dave Halter
5c6f8bda01
Fix inspect.signature for Python3.4.
2017-09-10 01:34:15 +02:00