##// END OF EJS Templates
Merge pull request #13350 from Kojoley/remove-parso-and-jedi-xfails...
Matthias Bussonnier -
r27200:341d8139 merge
parent child Browse files
Show More
@@ -26,15 +26,6 b' from IPython.core.completer import ('
26 _deduplicate_completions,
26 _deduplicate_completions,
27 )
27 )
28
28
29 if sys.version_info >= (3, 10):
30 import jedi
31 from pkg_resources import parse_version
32
33 # Requires https://github.com/davidhalter/jedi/pull/1795
34 jedi_issue = parse_version(jedi.__version__) <= parse_version("0.18.0")
35 else:
36 jedi_issue = False
37
38 # -----------------------------------------------------------------------------
29 # -----------------------------------------------------------------------------
39 # Test functions
30 # Test functions
40 # -----------------------------------------------------------------------------
31 # -----------------------------------------------------------------------------
@@ -210,11 +201,6 b' class KeyCompletable:'
210 return list(self.things)
201 return list(self.things)
211
202
212
203
213 @pytest.mark.xfail(
214 sys.version_info >= (3, 11),
215 reason="parso does not support 3.11 yet",
216 raises=NotImplementedError,
217 )
218 class TestCompleter(unittest.TestCase):
204 class TestCompleter(unittest.TestCase):
219 def setUp(self):
205 def setUp(self):
220 """
206 """
@@ -435,8 +421,6 b' class TestCompleter(unittest.TestCase):'
435 matches = c.all_completions("TestCl")
421 matches = c.all_completions("TestCl")
436 assert matches == ['TestClass'], jedi_status
422 assert matches == ['TestClass'], jedi_status
437 matches = c.all_completions("TestClass.")
423 matches = c.all_completions("TestClass.")
438 if jedi_status and jedi_issue:
439 continue
440 assert len(matches) > 2, jedi_status
424 assert len(matches) > 2, jedi_status
441 matches = c.all_completions("TestClass.a")
425 matches = c.all_completions("TestClass.a")
442 assert matches == ['TestClass.a', 'TestClass.a1'], jedi_status
426 assert matches == ['TestClass.a', 'TestClass.a1'], jedi_status
@@ -491,7 +475,6 b' class TestCompleter(unittest.TestCase):'
491 "encoding" in c.signature
475 "encoding" in c.signature
492 ), "Signature of function was not found by completer"
476 ), "Signature of function was not found by completer"
493
477
494 @pytest.mark.xfail(jedi_issue, reason="Known failure on jedi<=0.18.0")
495 def test_deduplicate_completions(self):
478 def test_deduplicate_completions(self):
496 """
479 """
497 Test that completions are correctly deduplicated (even if ranges are not the same)
480 Test that completions are correctly deduplicated (even if ranges are not the same)
General Comments 0
You need to be logged in to leave comments. Login now