Skip to content

Commit

Permalink
skip jedi test on 3.13 alpha that has no grammar yet with parso
Browse files Browse the repository at this point in the history
  • Loading branch information
Carreau committed Dec 31, 2023
1 parent c588092 commit 959b98a
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions IPython/core/tests/test_completer.py
Original file line number Diff line number Diff line change
Expand Up @@ -428,6 +428,7 @@ def _(text):
c = _("%ls foo")[0]
self.assertEqual(c.text, escaped)

@pytest.mark.xfail(sys.version_info.releaselevel in ('alpha',), reason='Parso does not yet parse 3.13')
def test_all_completions_dups(self):
"""
Make sure the output of `IPCompleter.all_completions` does not have
Expand All @@ -446,6 +447,7 @@ def test_all_completions_dups(self):
matches = c.all_completions("TestClass.a")
assert matches == ['TestClass.a', 'TestClass.a1'], jedi_status

@pytest.mark.xfail(sys.version_info.releaselevel in ('alpha',), reason='Parso does not yet parse 3.13')
def test_jedi(self):
"""
A couple of issue we had with Jedi
Expand Down Expand Up @@ -481,6 +483,8 @@ def _test_not_complete(reason, s, comp):

_test_not_complete("does not mix types", 'a=(1,"foo");a[0].', "capitalize")


@pytest.mark.xfail(sys.version_info.releaselevel in ('alpha',), reason='Parso does not yet parse 3.13')
def test_completion_have_signature(self):
"""
Lets make sure jedi is capable of pulling out the signature of the function we are completing.
Expand All @@ -496,6 +500,7 @@ def test_completion_have_signature(self):
"encoding" in c.signature
), "Signature of function was not found by completer"

@pytest.mark.xfail(sys.version_info.releaselevel in ('alpha',), reason='Parso does not yet parse 3.13')
def test_completions_have_type(self):
"""
Lets make sure matchers provide completion type.
Expand Down Expand Up @@ -531,6 +536,7 @@ class Z:
assert len(l) == 1, "Completions (Z.z<tab>) correctly deduplicate: %s " % l
assert l[0].text == "zoo" # and not `it.accumulate`

@pytest.mark.xfail(sys.version_info.releaselevel in ('alpha',), reason='Parso does not yet parse 3.13')
def test_greedy_completions(self):
"""
Test the capability of the Greedy completer.
Expand Down Expand Up @@ -1608,6 +1614,7 @@ def configure(suppression_config):
configure(None)
_("--", ["completion_iter", "completion_list"])

@pytest.mark.xfail(sys.version_info.releaselevel in ('alpha',), reason='Parso does not yet parse 3.13')
def test_matcher_suppression_with_jedi(self):
ip = get_ipython()
c = ip.Completer
Expand Down

0 comments on commit 959b98a

Please sign in to comment.