Dave Halter
e2fea0a5de
Fix some tests because of stub_context changes
2019-03-16 01:09:30 +01:00
Dave Halter
fce37fa0e3
Remove a few prints
2019-03-16 00:23:52 +01:00
Dave Halter
156e5f6beb
Add two typeshed tests
2019-03-13 10:04:19 +01:00
Dave Halter
8e9a91abf8
Implement is_stub and goto_stubs for the API
2019-03-11 19:13:24 +01:00
Dave Halter
32d2397e64
Move test_stub to test_gradual
2019-03-10 12:02:51 +01:00
Dave Halter
087a58965b
Add a typeshed test
2019-03-10 12:01:00 +01:00
Dave Halter
0cad79ad18
Merge branch 'master' into typeshed
2019-03-08 16:25:45 +01:00
Dave Halter
cd8c9436c5
Merge branch 'master' of github.com:davidhalter/jedi
2019-03-08 16:23:46 +01:00
Dave Halter
f93134d4f8
Two simple test fixes
2019-03-08 16:23:37 +01:00
Dave Halter
5743f54d69
One more relative import fix
2019-03-08 16:01:56 +01:00
Dave Halter
1914d10836
Fix relative imports outside of the proper paths
2019-03-08 14:25:54 +01:00
Dave Halter
6b579d53ec
Some more refactoring for relative imports
2019-03-08 10:54:28 +01:00
Dave Halter
c1d65ff144
Start reworking the relative imports
2019-03-07 00:27:51 +01:00
Dave Halter
9d19b060a9
Add a better comment for imports
2019-03-04 09:34:17 +01:00
Dave Halter
23d61e5e97
Restructure relative importing a bit and improve tests
2019-03-04 09:24:38 +01:00
micbou
46742328b6
Improve test_import_completion_docstring robustness
2019-03-02 09:58:01 +01:00
Dave Halter
467c2e5def
Merge branch 'master' into typeshed
...
There were quite a few conflicts, because there were two rewrites of the path
to dotted function.
2019-03-01 10:13:16 +01:00
Dave Halter
ffd9a6b484
Make it possible to complete in non-Python files
2019-02-28 20:04:17 +01:00
Dave Halter
8aca357de6
Write a test for #1209
...
Relative imports were failing in nested Python packages. With the fix to
transforming paths to dotted paths this should already be a lot better,
still here's a regression test.
2019-02-28 09:51:47 +01:00
Dave Halter
1a32663f85
The calculation of dotted paths from normal paths was completely wrong
2019-02-28 09:42:56 +01:00
Dave Halter
17136e03d2
Fix get_parent_scope
2019-02-27 13:08:21 +01:00
Dave Halter
24174632d4
Fix some bugs of the last few commits
2018-12-22 22:08:54 +01:00
Dave Halter
ca784916bb
Fix get_modules_containing_name
2018-12-22 14:33:24 +01:00
Dave Halter
fcda3f7bc5
Properly handle no __getitem__ on CompiledObject
2018-12-20 00:34:15 +01:00
Dave Halter
fcda62862c
Fix calculate_dotted_path_from_sys_path. It was broken beyond stupid.
2018-12-18 09:30:49 +01:00
Dave Halter
f55da1e1d6
Fix isues with Python 2.7 running a 3.6 env
2018-12-16 15:53:42 +01:00
Dave Halter
dc77c12e83
Fix pytest issues with this branch
2018-12-15 20:48:58 +01:00
Dave Halter
3ec78ba6c9
Merge branch 'master' into typeshed
2018-12-15 20:38:03 +01:00
Dave Halter
249564d6ea
Merge remote-tracking branch 'origin/master' into typeshed
2018-12-15 18:20:51 +01:00
Dave Halter
f7442032b2
Fix version differences for re.sub
2018-12-09 12:50:01 +01:00
Dave Halter
ae1f5fa511
Fix namedtuples and reactivate tests for Python 2
2018-12-09 12:41:58 +01:00
Dave Halter
0c37256050
Change some tests in Python2
2018-12-08 23:55:08 +01:00
oleg.hoefling
4711b85b50
used pytest.param to comply with pytest>=4
2018-12-07 17:49:39 +01:00
Dave Halter
decb5046ea
Some Python 2.7 fixes
2018-12-07 08:58:17 +01:00
micbou
368bf7e58a
Improve docstring formatting
2018-11-26 00:26:34 +01:00
Dave Halter
d5d7679120
Fix a few of the issues with compiled classes and typeshed and docs
2018-11-14 19:19:56 +01:00
Dave Halter
b847bb1c72
Some minor test changes to get typeshed almost fully working
2018-11-06 09:00:07 +01:00
Dave Halter
e086c433ff
Fix compiled docstrings for stubs
2018-09-04 10:08:09 +02:00
Dave Halter
b3a07941bb
Fix issues with the current branch
2018-08-09 23:25:29 +02:00
Dave Halter
9ca7b30e38
Rewrite the pyc test
2018-08-03 23:59:55 +02:00
Dave Halter
1a4be5c91c
Bound methods are now working correctly in all Python versions. Therefore a test was wrong.
2018-08-03 00:25:25 +02:00
Dave Halter
e7a019e628
The implicit namespace package test from 4b276bae87 can only be used for Python 3.4+
2018-07-21 11:51:41 +02:00
Dave Halter
4b276bae87
The import resolution for namespace packages was wrong
...
With this change we can now include all parents of the script, which will make
relative imports always work.
Now the whole meta_path is scanned and not just importlib's PathFinder.
Fixes #1183 .
2018-07-21 00:16:10 +02:00
Dave Halter
d06e55aab5
The sys path might be lazy or not in a venv
2018-07-10 10:07:18 +02:00
Maxim Novikov
fc14aad8f2
Fix namespace autocompletion error
2018-05-03 09:12:17 +02:00
Dave Halter
27419be56d
Fix some issues with the latest changes
2018-04-12 14:24:18 +02:00
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
81d8c49119
Write a test for venvs
2018-04-08 23:04:57 +02:00
Dave Halter
0c19219143
Obviously Python 3 syntax cannot be used in Python 2
2018-04-08 21:38:03 +02:00
Dave Halter
567c8b8097
Fix some fstring issues for now
2018-04-05 01:11:04 +02:00