Dave Halter
7fcbf7b5f0
Create the importer stuff Python2.7 and 3.3
2018-01-21 15:46:40 +01:00
Dave Halter
baacb5ec0d
Trying to use the import machinery to import jedi/parso in python3.4+
...
The problem was that adding stuff to sys.path is simply very risky, because it already caused import issues (because enum was installed in 2.7). It was bound to cause other issues
2018-01-21 15:25:59 +01:00
Dave Halter
fef594373a
Better reporting of internal errors
2018-01-20 22:56:51 +01:00
Dave Halter
41b24ab46b
Better error handling for subprocesses
...
I don't really understand why this wasn't an issue before, but it looks like we have to
catch both IOError and and socket.error in Python2.
2018-01-20 22:56:26 +01:00
Dave Halter
ddafe41bb6
Another merge with master
2018-01-20 22:01:57 +01:00
Dave Halter
98a3da674c
Ahhh another bug... A bit stupid of me not to run the tests
2018-01-20 22:00:41 +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
d3a5025635
Hopefully the last merge with master
2018-01-20 21:48:55 +01:00
Dave Halter
256f001480
Another small issue in the tests
2018-01-20 21:47:31 +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
27a3be3b42
Merge a commit that adds the build folder to the ignored paths
2018-01-20 20:38:56 +01:00
Dave Halter
9c0b344962
Small mistake when opening a file
2018-01-20 20:30:44 +01:00
Dave Halter
1476551257
Add better error reporting for potential issues
2018-01-20 19:33:47 +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
16b463a646
Refactor to avoid having unicode decode errors by default
2018-01-19 19:23:11 +01:00
Dave Halter
19b3580ba7
Get rid of some potential issues when using pandas interactively
...
The issue was that the python_object passed in was not hashable. Since it's not
used anyway and it doesn't make sense there, just ignore it.
Fixes #916 , #875
2018-01-18 19:54:20 +01:00
Dave Halter
c1394a82b5
Better error reporting, see #944
2018-01-18 19:12:32 +01:00
Dave Halter
609f59ce41
Fix issues with random tuples in TreeArgument.
...
Thanks @micbou for noticing it.
https://github.com/davidhalter/jedi/commit/b92c7d3351a34052237df4a292ec81ef97647e7f
2018-01-18 09:54:19 +01:00
Dave Halter
2b577fcd5c
Clarity
2018-01-17 19:24:08 +01:00
Dave Halter
d61aa50399
Remove the get_default_project caching
2018-01-17 19:23:30 +01:00
Dave Halter
263989c0ab
Add a comment about why the project is None in the subprocess
2018-01-17 19:12:58 +01:00
Dave Halter
4e4f75c882
evaluate.project doesn't exist anymore. Eliminated code that used it
2018-01-17 19:11:20 +01:00
Dave Halter
bf0b6741aa
At the moment, don't allow projects as an input to script
2018-01-17 09:57:58 +01:00
Dave Halter
9b4abeac4e
Remove the old project
2018-01-17 09:55:53 +01:00
Dave Halter
9b5e3447d9
Make the new project API fully work in tests
2018-01-17 09:54:11 +01:00
Dave Halter
fe813292cf
Try to migrate to the new project API
2018-01-16 23:56:35 +01:00
Dave Halter
9b9587a9dd
Refactor to make configuratios of sys paths easier
2018-01-16 19:20:55 +01:00
Dave Halter
ddaf175b11
Use the evaluate.project sys path stuff for api.project
2018-01-16 10:03:28 +01:00
Dave Halter
c6240d5453
Cache the default project
2018-01-16 00:20:33 +01:00
Dave Halter
2a0e8f91d3
A possible introduction for projects
2018-01-15 23:57:08 +01:00
Dave Halter
b92c7d3351
Some cleaning up of code
2018-01-13 18:59:03 +01:00
Dave Halter
999fb35914
Check for safe and unsafe environments when searching for them
2018-01-11 08:59:39 +01:00
Dave Halter
d815470e54
Remove the copyright notice from docs
2018-01-09 23:29:39 +01:00
Dave Halter
598ea1b89b
Add Python 2.6 removal to changelog. Refs #1018
2018-01-07 14:39:08 +01:00
Dave Halter
cc460a7126
Merge branch 'master' into rm-2.6
2018-01-07 14:32:47 +01:00
Dave Halter
4e52acbf26
Using setup.py build should not include part of tests
...
It looks like that we have to not only exclude the test package but also 'test.*'. Thanks to @david-geiger for noticing this. Fixes #1024 .
2018-01-07 14:13:40 +01:00
Dave Halter
d00b6ddd10
Sith still used NotFoundError which doesn't exist anymore in jedi
2018-01-06 14:14:16 +01:00
Dave Halter
9e1cce6111
Ignore pypy in travis for now
...
There are too many issues in there and I won't look at them.
2018-01-06 14:13:15 +01:00
Dave Halter
7c78882967
A path to ignore in coveragerc was wrong
2018-01-06 14:12:26 +01:00
Dave Halter
9fdf265a75
Allowing the cov tests did not properly work. Trying again.
2018-01-06 13:54:29 +01:00
Dave Halter
a3c7aaa65e
Somehow previously removed the allowed failurs of TOXENV=cov
2018-01-06 13:52:31 +01:00
Dave Halter
5844ad0900
Try to put env variables on one line
2018-01-06 13:49:06 +01:00
Dave Halter
e3d399cb08
Coverage was unfortunately excluded
2018-01-06 13:39:03 +01:00
Dave Halter
f36f5ec234
Merge with master
2018-01-06 12:31:29 +01:00
Dave Halter
a8124b625c
Add a comment to refactoring that it's not in active development
2018-01-06 12:29:03 +01:00
Dave Halter
bc57b08863
Change coveragerc a bit
...
Remove some exclude lines, because they don't matter and don't appear in our code base.
The files that are excluded are cannot be measured (because it's part of a subprocess) or are statically analyzed.
In addition refactoring.py hasn't been in use for a long time.
2018-01-06 12:27:48 +01:00
Dave Halter
14ac874e1a
Use Python3.4 for coverage.
2018-01-06 12:14:32 +01:00
Dave Halter
db47686159
Correct the issue about has_zlib
...
It was never actually the case that travis has Python versions without zlib. I didn't realize that modifying the sys path made it impossible to import the zlib library.
2018-01-06 03:34:37 +01:00
Dave Halter
e42796ca10
Move the zip tests to the environment
2018-01-06 02:26:30 +01:00
Dave Halter
99eed91206
Only execute the zipimport tests fully if zlib is available for the environment Python.
2018-01-06 02:11:33 +01: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
4d896892a3
Skip some 3.3 tests for travis
...
Python 3.3 on travis doesn't have zip support compiled.
Just ignore tests since 3.3 is End-of-Life anyway.
2018-01-04 01:46:07 +01:00
Dave Halter
3d39ffd16c
Skipping was done wrong
2018-01-03 19:45:46 +01:00
Dave Halter
d2cf2e69c9
Try a bit more if modifying the PATH is now possible.
2018-01-02 16:53:48 +01:00
Dave Halter
5e8d7a3c87
A comparison was wrong
2018-01-02 16:34:58 +01:00
Dave Halter
b2b8607bd6
A new version of the travis install script
2018-01-02 16:33:05 +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
d93b613fd9
Move the default environment around
2018-01-01 20:37:50 +01:00
Dave Halter
966bd53b40
More travis trying
2017-12-31 14:10:08 +01:00
Dave Halter
39f82bc5aa
Better debugging for travis
2017-12-31 02:49:18 +01:00
Dave Halter
2fbdf0dc09
Forgot to add the executable bit to the travis installer.
2017-12-30 23:27:11 +01:00
Dave Halter
39a456be41
Experiment with travis and installing packages differently
2017-12-30 23:08:32 +01:00
Dave Halter
9b1d3ff207
The tags should be annotated if possible
2017-12-30 14:05:14 +01:00
Dave Halter
b5e0df0e8c
Remove 2.6 from travis
2017-12-30 05:21:56 +01:00
Dave Halter
9c9b52422d
Correct the travis file
2017-12-30 05:14:26 +01:00
Dave Halter
b901ab9b0d
Some refactoring to finally get tests working with py27 and 3 environments
2017-12-30 05:01:50 +01:00
Dave Halter
b716fb7dc6
Use the parser to check for certain namedtuple features
...
This fixes tests that are used with python 2 but a different environment
2017-12-30 04:41:19 +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
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