Commit Graph

37 Commits

Author SHA1 Message Date
Dave Halter 1c91cfa9d6 Write a test for #1079 to avoid a regression in the future. 2018-04-10 19:23:20 +02:00
Dave Halter c9fa335145 Fix a goto_assignments issue with a better internal API
Fixes #996.
2018-01-29 08:58:59 +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
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 7c31ea9042 Drop support for EOL Python 2.6 2018-01-07 10:40:05 +02: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 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 bf73fcbed4 More test_evaluate Script fixtures 2017-12-29 19:36:05 +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 2210b11778 Fix some issues with import completion
Fixes #759
2017-09-14 20:09:13 +02:00
Dave Halter 9fb7fb66da Move another test to delete a file. 2017-05-07 16:39:32 +02:00
Dave Halter d717c3bf40 Merge some import tests. 2017-05-07 16:20:49 +02:00
Dave Halter c6248ae169 Some testing fixes that were broken with the few previous commits. 2016-12-06 18:18:53 +01:00
Dave Halter 6940900c58 A lot more fixes - fix all evaluate integration tests. 2016-12-03 22:17:38 +01:00
Dmitry Sadovnychyi 60484707a0 Add support for ZIP and EGG packages in imports 2016-07-25 20:29:02 +08:00
Dave Halter 5280f567f9 The docstring of import completions was wrong.
This is fixed now. However, since this might massively decrease performance,
it's not enabled by default. You can enable it with `docstring(fast=False)`
(see test changes), but I wouldn't recommend it at this point.

Fixes #656.
2016-07-09 01:04:15 +02:00
Dave Halter 306d274a3d Merge dev into linter. 2015-11-10 21:52:18 +01:00
immerrr fb592ad028 test_imports: add test to ensure caching works with sys_path 2015-10-26 13:03:42 +03:00
immerrr 90a08794ba test_imports: use sys_path 2015-10-26 13:03:42 +03:00
Dave Halter f77712ddf1 Test to assure that imports are not loaded twice. 2015-10-10 19:49:40 +02:00
Dave Halter eb146adcc1 Modules that are not importable shouldn't cause Jedi to stop working (just issue a warning). Fixes #468, #71. 2015-03-06 11:13:04 +01:00
Dave Halter 33b39c2b5d Don't use the old setup_function/teardown_function pytest stuff. It's very implicit and hard to understand. 2014-12-07 17:21:52 +01:00
Dave Halter 49b34b4d01 Stuff mostly related to namespace packages. 2014-12-07 16:51:54 +01:00
Albertas Agejevas ab486ba84f List old-style flask extensions, too. 2014-07-27 17:00:17 +02:00
Albertas Agejevas 7f45bfe689 More on #361: enumerate new-style flask extensions. 2014-07-27 16:08:26 +02:00
Albertas Agejevas 5edd2274b2 Fix an exception in the flask ext code. 2014-07-27 15:04:55 +02:00
Albertas Agejevas a18f8a7cbb Make tests terser. pytest rules! 2014-07-27 15:04:46 +02:00
Albertas Agejevas 13c1f79d5c A stab at davidhalter/jedi#361 (Flask extension imports)
Both new-style and old-style extensions work, but only when imported
with a 'from'.  There are two skipped tests of the full dotted name
imports.

Also, our fixture has a normal flaskext package, whereas in practice
the flaskext module is injected from a pth file and does not have
__init__.py, we need to figure out to handle that.
2014-07-27 15:04:31 +02:00
Dave Halter 5aa6c770b3 refactor follow_definition tests 2014-03-23 12:40:33 +01:00
Dave Halter fa0502d762 again testing improvements. follow_definitions imports are now pretty much covered 2014-03-21 13:50:29 +01:00
Dave Halter eeeeee49f5 new tests for that whole import mess 2014-03-21 11:12:40 +01:00
Dave Halter 58026c6542 temporary conversion of the imports module to separate import processing from actually importing things 2014-03-19 16:40:38 +01:00
Dave Halter 9f12352ec1 tests for import completions and a following follow_definition call 2014-03-17 11:58:29 +01:00
Dave Halter 8660555d7b moved api, parser and evaluate test directories to test_api, test_parser... 2014-01-29 21:16:18 +01:00