micbou
95f835a014
Force unicode when listing module names
...
pkgutil.iter_modules may return the module name as str instead of unicode on
Python 2.
2018-06-24 22:41:14 +02:00
micbou
282c6a2ba1
Use highest possible pickle protocol
2018-06-23 14:45:34 +02:00
micbou
106b11f1af
Set stdout and stdin to binary mode on Python 2 and Windows
2018-06-22 00:08:53 +02:00
micbou
f9e90e863b
Use system default buffering on Python 2
2018-06-21 19:50:51 +02:00
micbou
197aa22f29
Use cPickle on Python 2 if available
...
Attempt to load the C version of pickle on Python 2 as it is way faster.
2018-06-21 19:39:08 +02:00
micbou
70c2fce9c2
Replace distutils.spawn.find_executable with shutil.which
...
The distutils.spawn.find_executable function is not available on stock system
Python 3 in recent Debian-based distributions. Since shutil.which is a better
alternative but not available on Python 2.7, we include a copy of that function
and use it in place of find_executable.
2018-06-07 21:07:22 +02:00
micbou
c1014e00ca
Fix flow analysis test
...
There is no seekable method for file objects on Python 2. Use flush instead.
2018-06-07 01:01:18 +02:00
micbou
5f37d08761
Extend create_environment to accept an executable path
...
Assume environments specified by the user are safe.
2018-04-19 21:36:44 +02:00
micbou
cf5f06f378
Do not cache unimportable compiled module ( #1079 )
...
From the issue:
The issue can be reproduced by getting the description of the QtBluetooth module from PyQt5 on Windows:
import jedi
completions = jedi.Script('import PyQt5.QtBlueTooth').completions()
completions[0].description
It's hard to write a test for it so we don't write one for it.
2018-04-10 19:10:05 +02:00
micbou
286dd92e35
Fix permissions of Python 3.6 on Travis
2018-04-10 09:19:12 +02:00
micbou
903bdf5fef
Fix virtual environment tests
2018-04-10 09:19:12 +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
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
c6635ccc55
Properly raise broken pipe exception
2018-03-24 12:02:06 +01:00
micbou
51b44032bd
Fix paths from assignment test on Windows
2018-03-23 00:35:57 +01:00
micbou
2283b67836
Specify executable extension to detect virtual environment on Windows
2018-03-22 23:17:23 +01:00
micbou
3a0ac37ee8
Fix error when using generators with variable-length arguments
2018-01-13 18:56:34 +01:00
micbou
175e57214e
Fix instance docstring
2017-07-14 00:59:55 +02:00
micbou
f5248250d8
Fix keyword docstring
2017-07-14 00:22:27 +02:00
micbou
a859add6d7
Only resolve names for actual modules
...
A name can be part of an import statement without being a module.
2017-03-01 21:06:21 +01:00