commit: 110463e1da863170f9a8b649ddbe677bba8e0dea Author: Michael Mair-Keimberger <m.mairkeimberger <AT> gmail <DOT> com> AuthorDate: Tue May 19 19:21:17 2020 +0000 Commit: Aaron Bauman <bman <AT> gentoo <DOT> org> CommitDate: Tue Jun 2 04:28:00 2020 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=110463e1
dev-python/jedi: remove unused patch Signed-off-by: Michael Mair-Keimberger <m.mairkeimberger <AT> gmail.com> Signed-off-by: Aaron Bauman <bman <AT> gentoo.org> dev-python/jedi/files/jedi-0.15.1-tests.patch | 94 --------------------------- 1 file changed, 94 deletions(-) diff --git a/dev-python/jedi/files/jedi-0.15.1-tests.patch b/dev-python/jedi/files/jedi-0.15.1-tests.patch deleted file mode 100644 index cdc59053df0..00000000000 --- a/dev-python/jedi/files/jedi-0.15.1-tests.patch +++ /dev/null @@ -1,94 +0,0 @@ -diff --git a/test/test_api/test_completion.py b/test/test_api/test_completion.py -index 178daee9..0c86f837 100644 ---- a/test/test_api/test_completion.py -+++ b/test/test_api/test_completion.py -@@ -1,4 +1,5 @@ --from os.path import join, sep as s -+from os.path import join, sep as s, dirname -+import os - import sys - from textwrap import dedent - -@@ -164,6 +165,7 @@ f2 = join(root_dir, 'test', 'example.py') - os_path = 'from os.path import *\n' - # os.path.sep escaped - se = s * 2 if s == '\\' else s -+current_dirname = os.path.basename(dirname(dirname(dirname(__file__)))) - - - @pytest.mark.parametrize( -@@ -181,7 +183,7 @@ se = s * 2 if s == '\\' else s - ('test%sexample.py' % se, 'r"test%scomp"' % s, 5, ['t' + s]), - ('test%sexample.py' % se, 'r"test%scomp"' % s, 11, ['letion' + s]), - ('test%sexample.py' % se, '"%s"' % join('test', 'completion', 'basi'), 21, ['c.py']), -- ('example.py', 'rb"' + join('..', 'jedi', 'tes'), None, ['t' + s]), -+ ('example.py', 'rb"'+ join('..', current_dirname, 'tes'), None, ['t' + s]), - - # Absolute paths - (None, '"' + join(root_dir, 'test', 'test_ca'), None, ['che.py"']), -diff --git a/test/test_evaluate/test_signature.py b/test/test_evaluate/test_signature.py -index 0bb5cbae..2fda3d55 100644 ---- a/test/test_evaluate/test_signature.py -+++ b/test/test_evaluate/test_signature.py -@@ -16,7 +16,7 @@ from jedi.evaluate.gradual.conversion import _stub_to_python_context_set - ('str', "str(object='', /) -> str", ['object'], ge, (2, 7)), - - ('pow', 'pow(x, y, z=None, /) -> number', ['x', 'y', 'z'], lt, (3, 5)), -- ('pow', 'pow(x, y, z=None, /)', ['x', 'y', 'z'], ge, (3, 5)), -+ ('pow', 'pow(base, exp, mod=None)', ['base', 'exp', 'mod'], ge, (3, 8)), - - ('bytes.partition', 'partition(self, sep, /) -> (head, sep, tail)', ['self', 'sep'], lt, (3, 5)), - ('bytes.partition', 'partition(self, sep, /)', ['self', 'sep'], ge, (3, 5)), -diff --git a/test/test_evaluate/test_sys_path.py b/test/test_evaluate/test_sys_path.py -index deaa64ca..fdee2ece 100644 ---- a/test/test_evaluate/test_sys_path.py -+++ b/test/test_evaluate/test_sys_path.py -@@ -1,7 +1,9 @@ - import os -+import os.path - from glob import glob - import sys - import shutil -+import distutils.sysconfig - - import pytest - from ..helpers import skip_if_windows, skip_if_not_windows -@@ -33,12 +35,10 @@ def test_venv_and_pths(venv_path): - pjoin = os.path.join - - CUR_DIR = os.path.dirname(__file__) -- site_pkg_path = pjoin(venv_path, 'lib') -- if os.name == 'nt': -- site_pkg_path = pjoin(site_pkg_path, 'site-packages') -- else: -- site_pkg_path = glob(pjoin(site_pkg_path, 'python*', 'site-packages'))[0] -- shutil.rmtree(site_pkg_path) -+ site_pkg_path = pjoin(venv_path, -+ distutils.sysconfig.get_python_lib().lstrip(distutils.sysconfig.BASE_PREFIX)) -+ if os.path.exists(site_pkg_path): -+ shutil.rmtree(site_pkg_path) - shutil.copytree(pjoin(CUR_DIR, 'sample_venvs', 'pth_directory'), site_pkg_path) - - virtualenv = create_environment(venv_path) -diff --git a/test/test_utils.py b/test/test_utils.py -index 17328a36..71217086 100644 ---- a/test/test_utils.py -+++ b/test/test_utils.py -@@ -77,10 +77,14 @@ class TestSetupReadline(unittest.TestCase): - # There are minor differences, e.g. the dir doesn't include deleted - # items as well as items that are not only available on linux. - difference = set(self.completions(s)).symmetric_difference(goal) -- difference = {x for x in difference if not x.startswith('from os import _')} -+ difference = { -+ x for x in difference -+ if all(not x.startswith('from os import ' + s) -+ for s in ['_', 'O_', 'EX_', 'MFD_', 'SF_']) -+ } - # There are quite a few differences, because both Windows and Linux -- # (posix and nt) libraries are included. -- assert len(difference) < 38 -+ # (posix and nt) librariesare included. -+ assert len(difference) < 22 - - @cwd_at('test') - def test_local_import(self):