##// END OF EJS Templates
stricted but no doctests
M Bussonnier -
Show More
@@ -10,6 +10,9 b' import sys'
10 import textwrap
10 import textwrap
11 import unittest
11 import unittest
12
12
13 from importlib.metadata import version
14
15
13 from contextlib import contextmanager
16 from contextlib import contextmanager
14
17
15 from traitlets.config.loader import Config
18 from traitlets.config.loader import Config
@@ -30,6 +33,9 b' from IPython.core.completer import ('
30 CompletionContext,
33 CompletionContext,
31 )
34 )
32
35
36 from packaging.version import parse
37
38
33 # -----------------------------------------------------------------------------
39 # -----------------------------------------------------------------------------
34 # Test functions
40 # Test functions
35 # -----------------------------------------------------------------------------
41 # -----------------------------------------------------------------------------
@@ -531,7 +537,9 b' class TestCompleter(unittest.TestCase):'
531 c = next(completions) # should be `%time` or similar
537 c = next(completions) # should be `%time` or similar
532 assert c.type == "magic", "Type of magic was not assigned by completer"
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 def test_deduplicate_completions(self):
543 def test_deduplicate_completions(self):
536 """
544 """
537 Test that completions are correctly deduplicated (even if ranges are not the same)
545 Test that completions are correctly deduplicated (even if ranges are not the same)
@@ -54,10 +54,6 b' class PdbTestInput(object):'
54 # Tests
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 def test_ipdb_magics():
57 def test_ipdb_magics():
62 '''Test calling some IPython magics from ipdb.
58 '''Test calling some IPython magics from ipdb.
63
59
@@ -454,6 +450,7 b' def test_decorator_skip_disabled():'
454 @pytest.mark.xfail(
450 @pytest.mark.xfail(
455 sys.version_info.releaselevel not in ("final", "candidate"),
451 sys.version_info.releaselevel not in ("final", "candidate"),
456 reason="fails on 3.13.dev",
452 reason="fails on 3.13.dev",
453 strict=True,
457 )
454 )
458 @pytest.mark.skipif(platform.python_implementation() == "PyPy", reason="issues on PyPy")
455 @pytest.mark.skipif(platform.python_implementation() == "PyPy", reason="issues on PyPy")
459 @skip_win32
456 @skip_win32
@@ -491,6 +491,7 b' def test_pinfo_docstring_if_detail_and_no_source():'
491 @pytest.mark.xfail(
491 @pytest.mark.xfail(
492 sys.version_info.releaselevel not in ("final", "candidate"),
492 sys.version_info.releaselevel not in ("final", "candidate"),
493 reason="fails on 3.13.dev",
493 reason="fails on 3.13.dev",
494 strict=True,
494 )
495 )
495 def test_pinfo_docstring_dynamic(capsys):
496 def test_pinfo_docstring_dynamic(capsys):
496 obj_def = """class Bar:
497 obj_def = """class Bar:
@@ -99,6 +99,7 b' test = ['
99 "pytest-asyncio<0.22",
99 "pytest-asyncio<0.22",
100 "testpath",
100 "testpath",
101 "pickleshare",
101 "pickleshare",
102 "packaging",
102 ]
103 ]
103 test_extra = [
104 test_extra = [
104 "ipython[test]",
105 "ipython[test]",
General Comments 0
You need to be logged in to leave comments. Login now