forked from pool/python-jedi
- Update to v0.17.0
* Added ``Project`` support. This allows a user to specify which
folders Jedi should work with.
* Added support for Refactoring. The following refactorings have
been implemented: ``Script.rename``, ``Script.inline``,
``Script.extract_variable`` and ``Script.extract_function``.
* Added ``Script.get_syntax_errors`` to display syntax errors in
the current script.
* Added code search capabilities both for individual files and
projects. The new functions are ``Project.search``,
``Project.complete_search``, ``Script.search`` and
``Script.complete_search``.
* Added ``Script.help`` to make it easier to display a help
window to people. Now returns pydoc information as well for
Python keywords/operators. This means that on the class
keyword it will now return the docstring of Python's builtin
function ``help('class')``.
* The API documentation is now way more readable and complete.
Check it out under https://jedi.readthedocs.io. A lot of it
has been rewritten.
* Removed Python 3.4 support
* Many bugfixes
- back to regular releases, no git service needed anymore
- jedi-pr1543-sorttest.patch gh#davidhalter/jedi#1543
OBS-URL: https://build.opensuse.org/request/show/794383
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-jedi?expand=0&rev=65
24 lines
947 B
Diff
24 lines
947 B
Diff
From 57f2a731d2e5c4fe5794d823154983e44e8df003 Mon Sep 17 00:00:00 2001
|
|
From: =?UTF-8?q?Micha=C5=82=20G=C3=B3rny?= <mgorny@gentoo.org>
|
|
Date: Wed, 15 Apr 2020 07:54:01 +0200
|
|
Subject: [PATCH] Sort test_project::test_search results to fix failures
|
|
|
|
Fixes #1542
|
|
---
|
|
test/test_api/test_project.py | 2 +-
|
|
1 file changed, 1 insertion(+), 1 deletion(-)
|
|
|
|
diff --git a/test/test_api/test_project.py b/test/test_api/test_project.py
|
|
index a7d4846e7..c21579a59 100644
|
|
--- a/test/test_api/test_project.py
|
|
+++ b/test/test_api/test_project.py
|
|
@@ -135,7 +135,7 @@ def test_search(string, full_names, kwargs, skip_pre_python36):
|
|
defs = project.complete_search(string, **kwargs)
|
|
else:
|
|
defs = project.search(string, **kwargs)
|
|
- assert [('stub:' if d.is_stub() else '') + d.full_name for d in defs] == full_names
|
|
+ assert sorted([('stub:' if d.is_stub() else '') + d.full_name for d in defs]) == full_names
|
|
|
|
|
|
@pytest.mark.parametrize(
|