Dave Halter
a14f665b5a
Use Script everywhere where cwd_at is used, otherwise Python 2.7 is annoying
2017-12-30 03:55:23 +01:00
Dave Halter
0ed9e1c249
The given sys_path gets converted to unicode now in py2
2017-12-30 03:40:01 +01: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
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
918153d55a
Cleanup test_regression tests
2017-12-29 20:13:04 +01:00
Dave Halter
ff4f7d5471
Move test_integration_keywrod to test_api/test_keyword
2017-12-29 20:05:37 +01:00
Dave Halter
c7266d65c1
Cleanup the docstring tests
2017-12-29 19:47:28 +01:00
Dave Halter
bf73fcbed4
More test_evaluate Script fixtures
2017-12-29 19:36:05 +01:00
Dave Halter
5fc755b0cf
stdlib fixture conversions
2017-12-29 19:13:15 +01:00
Dave Halter
ac21fc376e
More Script fixture conversions in test_evaluate
2017-12-29 19:08:09 +01:00
Dave Halter
2493e6ea16
Migrate parso integration to script fixture
2017-12-29 18:47:13 +01:00
Dave Halter
181fe38c17
Use Script in more places
2017-12-29 18:43:10 +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
05804f1768
Monkeypatch the Unpickler in Python3.3
...
Needed to get Python3.3 working. See the comment in the commit.
2017-12-29 15:37:37 +01:00
Dave Halter
408293085c
Try to pass the environment variable for JEDI_TEST_ENVIRONMENT to pytest over tox
2017-12-29 13:49:24 +01:00
Dave Halter
ed57f6172f
Correct the two last unicode issues
2017-12-29 12:59:06 +01:00
Dave Halter
2ba46759fc
Some repr went crazy
2017-12-29 03:58:02 +01:00
Dave Halter
95bf858669
Make it more clear for debugging where dynamic search ended
2017-12-29 03:54:12 +01:00
Dave Halter
d7de3f3fec
Fix pep0484 comments
2017-12-29 03:29:29 +01:00
Dave Halter
a1051bd5f2
Better display of descriptors
2017-12-29 03:29:08 +01:00
Dave Halter
35158f693d
Remove some of the last py27 errors that were caused in combination with 3.6
2017-12-29 02:45:11 +01:00
Dave Halter
ec9b8e8c02
Forgot to cast a map to a list
2017-12-29 02:39:35 +01:00
Dave Halter
52298510ed
Fixing more py27 stuff
2017-12-29 02:02:34 +01:00
Dave Halter
b4f301e082
More unicode literals
2017-12-29 01:42:22 +01:00
Dave Halter
59c44fe499
Use force_unicode for all sys paths
2017-12-29 01:28:23 +01:00
Dave Halter
6e69326aa9
Add a print_to_stderr function in compatibility
2017-12-29 01:26:15 +01:00
Dave Halter
05b2906dcc
Some more small improvements for Python 2
2017-12-28 23:58:19 +01:00
Dave Halter
4b72a89379
There were a few bugs in the previous commit
2017-12-28 23:25:09 +01:00
Dave Halter
ba81aa16a2
Use unicode in way more cases
2017-12-28 23:19:17 +01:00
Dave Halter
5755d5a4ee
Use unicode always for getting special objects
2017-12-28 22:41:20 +01:00
Dave Halter
9906c4f9fc
Skip the correct tests
2017-12-28 22:03:02 +01:00
Dave Halter
37d282e67b
Always use the parser of the environment
2017-12-28 21:19:26 +01:00
Dave Halter
7a7c93a2e5
Try to test on travis with different jedi test environment variables
2017-12-28 02:46:53 +01:00
Dave Halter
c946d421d6
Try adding more automated tests to travis
2017-12-28 02:28:44 +01:00
Dave Halter
2d3b15b485
Fix potential issues with py2 analysis
2017-12-28 02:19:42 +01:00
Dave Halter
5b8ed7f615
Check for bytes and unicode in dicts for Python 2
2017-12-28 02:15:27 +01:00
Dave Halter
d1d4986667
Eliminate is_py3 usages
2017-12-28 01:55:39 +01:00
Dave Halter
6b6795c40c
Don't use python_version directly on evaluator anymore
2017-12-28 01:44:59 +01:00
Dave Halter
31f1913b07
Use unicode always in getattr
2017-12-28 01:42:58 +01:00
Dave Halter
7accd4fae3
Fix an issue with the new behavior of special methods
2017-12-28 01:38:16 +01:00
Dave Halter
a7dea9e821
Fix some more py36 to py27 issues
2017-12-28 01:33:51 +01:00
Dave Halter
a8d3c46e9d
Refactor some things regarding Python 2 support
2017-12-27 02:09:58 +01:00
Dave Halter
7e063ff7af
Also don't cast do a string for other names
2017-12-26 15:44:00 +01:00
Dave Halter
8a82a5237d
Casting to str is not necessary
2017-12-26 15:32:25 +01:00
Dave Halter
e925661aff
Skip tests according to the current environment
2017-12-26 15:07:57 +01:00
Dave Halter
a7168db1ea
Remove unused keyword code
2017-12-26 14:13:56 +01:00
Dave Halter
c43009d5dc
Do more comparisons in the subprocess
2017-12-26 13:38:47 +01:00
Dave Halter
ab42e856fb
Use unicode in compiled access
2017-12-26 03:24:26 +01:00
Dave Halter
6d70bd7d5c
Remove unused code
2017-12-26 03:18:16 +01:00
Dave Halter
c3483344fe
Refactor allowed_getattr_callback a bit to not raise random errors.
2017-12-24 12:55:32 +01:00
Dave Halter
993b0973c5
The default of one function was not actually used
2017-12-24 12:12:27 +01:00
Dave Halter
f494bb5848
The string_name of a Name should always be unicode
2017-12-24 04:05:28 +01:00
Dave Halter
4a366ab728
Refactor a bit and force unicode in some places and use an appropriate function name for it
2017-12-24 04:05:02 +01:00
Dave Halter
96a4fd7bd6
Fix a test fail because of the unicode changes
2017-12-24 03:53:27 +01:00
Dave Halter
fdd405f552
The environment selection had a bug
2017-12-24 03:47:35 +01:00
Dave Halter
085a9e0e33
More unicode conversions
2017-12-24 03:46:33 +01:00
Dave Halter
ee099a4ff7
Don't use getattr, use the abstractions
2017-12-24 03:39:28 +01:00
Dave Halter
40f1354f67
More unicode conversions
2017-12-24 03:35:15 +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
5a06ea2699
Start using a lot more unicode literals for Python 2
2017-12-24 03:11:28 +01:00
Dave Halter
1f4e0dd22e
Make it possible to explicitly state the version in pytest for different envs
2017-12-24 03:01:47 +01:00
Dave Halter
a38acdbe08
Use unicode sys paths always
2017-12-24 02:42:14 +01:00
Dave Halter
7bfca5bcd7
Don't cast bytes to strings when unpickling
2017-12-23 21:18:04 +01:00
Dave Halter
c3520bea65
By default enable cross Python version tests in tox
2017-12-23 19:59:37 +01:00
Dave Halter
7ad37fb976
Skip more tests if it's necessary.
2017-12-23 19:56:47 +01:00
Dave Halter
87666d72a1
Move the import logic to the subprocess
2017-12-23 17:59:56 +01:00
Dave Halter
473be114f3
Move even more import stuff to a separate function
2017-12-23 17:10:57 +01:00
Dave Halter
e2f8d53ee4
Move some import parts around to refactor it
2017-12-23 16:16:17 +01:00
Dave Halter
4ab7f7a0b0
Make ImplicitNamespaceContext a bit cleaner
2017-12-21 23:43:47 +01:00
Dave Halter
723d6515ac
Change two tests that were written in a strange way
2017-12-20 10:36:39 +01:00
Dave Halter
a96f2c43df
Add a way to skip typing tests in non default environments
2017-12-20 10:07:16 +01:00
Dave Halter
890dd2213d
Use better error messages for import errors
2017-12-19 23:51:05 +01:00
Dave Halter
456ae20aac
Start using the new virtualenv code
...
There used to be a lot of code to kind of understand virtualenvs. This can all be removed now, because this is done in a subprocess with the correct interpreter
2017-12-19 21:05:04 +01:00
Dave Halter
96a67f9a4c
Start using the correct parser for each environment
2017-12-19 19:19:35 +01:00
Dave Halter
a9ebd92c20
Add a way to specify environments in tox
2017-12-19 19:02:57 +01:00
Dave Halter
6780eba157
Fix sys_path propagation for builtins load_module
2017-12-18 20:16:58 +01:00
Dave Halter
aa40ef3140
A small refactoring
2017-12-18 20:03:23 +01:00
Dave Halter
5f2b49d039
Merge branch 'master' into virtualenv
2017-12-18 01:41:29 +01:00
Dave Halter
46b62b7bed
evaluate/docstrings.py
...
Make some docstring stuff easier
2017-12-18 01:40:21 +01:00
Dave Halter
f5c7e3bb06
Don't import numpydoc in the beginning
...
There were issues in combination with importing it with subprocesses
2017-12-18 01:34:19 +01:00
Dave Halter
8b3ee75654
Ignore the build directory for pytest
2017-12-17 21:35:39 +01:00
Dave Halter
fe3e8a0867
Refactor environments a bit
2017-12-17 18:47:28 +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
f37089e54b
Bump the version number
2017-12-15 10:47:14 +01:00
Dave Halter
69237c4aa6
Add a changelog for jedi 0.11.1
2017-12-15 10:45:27 +01:00
Dave Halter
02f238ce08
Add the executable bit to deploy-master.sh
2017-12-14 22:51:02 +01:00
Dave Halter
e526cb1ae3
Don't run Python 2.6 in tox by default
...
Python 2.6 seems to be harder and harder to run in tox if setuptools is not properly configured for it.
It's still possible to run it and it still runs on travis.
2017-12-14 22:50:13 +01:00
Dave Halter
62915686af
Don't use pytest 3.3+ because it removed support for Python 3.3
2017-12-14 22:29:13 +01:00
Dave Halter
c3efde3bfa
Add an optimization around compiled dir()
2017-12-14 22:28:22 +01:00
Dave Halter
950cab2849
Fix a potential issue in evaluate/stdlib
2017-12-14 22:24:37 +01:00
Dave Halter
9d094b68f3
Cache the subprocess results
2017-12-14 22:23:59 +01:00
Dave Halter
94e2e92888
Remove unit test class from speed tests
2017-12-13 19:22:45 +01:00