MCPcopy Index your code
hub / github.com/ipython/ipython / test_decorator_skip_disabled

Function test_decorator_skip_disabled

tests/test_debugger.py:505–528  ·  view source on GitHub ↗

test that decorator frame skipping can be disabled

()

Source from the content-addressed store, hash-verified

503@pytest.mark.skipif(platform.python_implementation() == "PyPy", reason="issues on PyPy")
504@skip_win32
505def test_decorator_skip_disabled():
506 """test that decorator frame skipping can be disabled"""
507
508 child = _decorator_skip_setup()
509
510 child.expect_exact("3 bar(3, 4)")
511
512 for input_, expected in [
513 ("skip_predicates debuggerskip False", ""),
514 ("skip_predicates", "debuggerskip : False"),
515 ("step", "---> 2 def wrapped_fn"),
516 ("step", "----> 3 __debuggerskip__"),
517 ("step", "----> 4 helper_1()"),
518 ("step", "---> 1 def helper_1():"),
519 ("next", "----> 2 helpers_helper()"),
520 ("next", "--Return--"),
521 ("next", "----> 5 __debuggerskip__ = False"),
522 ]:
523 child.expect("ipdb>")
524 child.sendline(input_)
525 child.expect_exact(input_)
526 child.expect_exact(expected)
527
528 child.close()
529
530
531@pytest.mark.skip(reason="recently fail for unknown reason on CI")

Callers

nothing calls this directly

Calls 2

_decorator_skip_setupFunction · 0.85
closeMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…