Show More
@@ -10,6 +10,9 b' import sys' | |||
|
10 | 10 | import textwrap |
|
11 | 11 | import unittest |
|
12 | 12 | |
|
13 | from importlib.metadata import version | |
|
14 | ||
|
15 | ||
|
13 | 16 | from contextlib import contextmanager |
|
14 | 17 | |
|
15 | 18 | from traitlets.config.loader import Config |
@@ -30,6 +33,9 b' from IPython.core.completer import (' | |||
|
30 | 33 | CompletionContext, |
|
31 | 34 | ) |
|
32 | 35 | |
|
36 | from packaging.version import parse | |
|
37 | ||
|
38 | ||
|
33 | 39 | # ----------------------------------------------------------------------------- |
|
34 | 40 | # Test functions |
|
35 | 41 | # ----------------------------------------------------------------------------- |
@@ -531,7 +537,9 b' class TestCompleter(unittest.TestCase):' | |||
|
531 | 537 | c = next(completions) # should be `%time` or similar |
|
532 | 538 | assert c.type == "magic", "Type of magic was not assigned by completer" |
|
533 | 539 | |
|
534 | @pytest.mark.xfail(reason="Known failure on jedi<=0.18.0") | |
|
540 | @pytest.mark.xfail( | |
|
541 | parse(version("jedi")) > parse("0.18.0"), reason="Known failure on jedi<=0.18.0" | |
|
542 | ) | |
|
535 | 543 | def test_deduplicate_completions(self): |
|
536 | 544 | """ |
|
537 | 545 | Test that completions are correctly deduplicated (even if ranges are not the same) |
@@ -54,10 +54,6 b' class PdbTestInput(object):' | |||
|
54 | 54 | # Tests |
|
55 | 55 | #----------------------------------------------------------------------------- |
|
56 | 56 | |
|
57 | @pytest.mark.xfail( | |
|
58 | sys.version_info.releaselevel not in ("final", "candidate"), | |
|
59 | reason="fails on 3.13.dev", | |
|
60 | ) | |
|
61 | 57 | def test_ipdb_magics(): |
|
62 | 58 | '''Test calling some IPython magics from ipdb. |
|
63 | 59 | |
@@ -454,6 +450,7 b' def test_decorator_skip_disabled():' | |||
|
454 | 450 | @pytest.mark.xfail( |
|
455 | 451 | sys.version_info.releaselevel not in ("final", "candidate"), |
|
456 | 452 | reason="fails on 3.13.dev", |
|
453 | strict=True, | |
|
457 | 454 | ) |
|
458 | 455 | @pytest.mark.skipif(platform.python_implementation() == "PyPy", reason="issues on PyPy") |
|
459 | 456 | @skip_win32 |
@@ -491,6 +491,7 b' def test_pinfo_docstring_if_detail_and_no_source():' | |||
|
491 | 491 | @pytest.mark.xfail( |
|
492 | 492 | sys.version_info.releaselevel not in ("final", "candidate"), |
|
493 | 493 | reason="fails on 3.13.dev", |
|
494 | strict=True, | |
|
494 | 495 | ) |
|
495 | 496 | def test_pinfo_docstring_dynamic(capsys): |
|
496 | 497 | obj_def = """class Bar: |
General Comments 0
You need to be logged in to leave comments.
Login now