Commit Graph

260 Commits

Author SHA1 Message Date
Dave Halter 27419be56d Fix some issues with the latest changes 2018-04-12 14:24:18 +02:00
Dave Halter b74ba7cd01 Fix an import 2018-04-09 01:47:31 +02:00
Dave Halter 519f54321e Merge the environment changes for Windows 2018-04-09 01:43:57 +02:00
Dave Halter f4c14864a5 Better tests for venvs 2018-04-09 01:28:43 +02:00
Dave Halter 81d8c49119 Write a test for venvs 2018-04-08 23:04:57 +02:00
micbou b3b6b798ff Find Python environments on Windows using the registry 2018-04-08 19:04:11 +02:00
micbou 0fd8e728f5 Add comment explaining why test_versions is disabled on Windows 2018-03-24 22:52:41 +01:00
micbou bf57fa16fc Add JEDI_TEST_ENVIRONMENT_EXECUTABLE for AppVeyor 2018-03-24 22:52:41 +01:00
micbou e8b301ebf9 Add AppVeyor configuration 2018-03-24 22:52:41 +01:00
Dave Halter 60da6034c0 Fix some code_lines issues 2018-03-17 19:41:26 +01:00
Dave Halter 094affaf84 Remove stdout/stderr from subprocesses (redirected to /dev/null)
This means that the subprocess should now not crash anymore because of people
writing to stdout in c modules and stderr should be empty.

Fixes #793.
2018-03-17 14:14:00 +01:00
Dave Halter 144a1def6c Fix a few version issues in tests 2018-03-13 22:59:07 +01:00
Dave Halter f9ec989835 Fix REPL completion param name completion
There were two issues:
1. The filter for parameters was wrong
2. In general the equal sign would not be added in some circumstances
2018-03-13 21:36:04 +01:00
Dave Halter 0dda740c5d Add keyword argument test for #292 2018-03-13 19:09:33 +01:00
Dave Halter d0b8f9e5a2 Fix an interpreter test in Python 2 2018-03-12 20:49:27 +01:00
Dave Halter 5c1d979522 Fix an issue around __dir__ in the interpreter
Fixes #1027.
2018-03-12 01:46:12 +01:00
Dave Halter a85f2d1049 Use the correct class for params when used in names. Fixes #1006 2018-03-07 09:59:31 +01:00
Dave Halter 4dc10e0d4b Autocompletion in comments should at least not fail
Fixes #968
2018-03-01 08:57:32 +01:00
Dave Halter 3ae0560f1c Fix an issue where a default value was wrongly used 2018-01-31 00:11:30 +01:00
Dave Halter fc458a3c2a inspect.signature throws weird errors sometimes, just make it a bit simpler
Fixes #1031
2018-01-26 01:30:10 +01:00
Dave Halter 68f840de60 Refactor django path support 2018-01-24 19:13:05 +01:00
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