Show More
@@ -497,11 +497,18 b' def test_decorator_skip_with_breakpoint():' | |||||
497 | child.expect_exact(line) |
|
497 | child.expect_exact(line) | |
498 | child.sendline("") |
|
498 | child.sendline("") | |
499 |
|
499 | |||
500 | # as the filename does not exists, we'll rely on the filename prompt |
|
500 | # From 3.13, set_trace()/breakpoint() stop on the line where they're | |
501 | child.expect_exact("47 bar(3, 4)") |
|
501 | # called, instead of the next line. | |
|
502 | if sys.version_info >= (3, 13): | |||
|
503 | child.expect_exact("--> 46 ipdb.set_trace()") | |||
|
504 | extra_step = [("step", "--> 47 bar(3, 4)")] | |||
|
505 | else: | |||
|
506 | child.expect_exact("--> 47 bar(3, 4)") | |||
|
507 | extra_step = [] | |||
502 |
|
508 | |||
503 | for input_, expected in [ |
|
509 | for input_, expected in [ | |
504 | (f"b {name}.py:3", ""), |
|
510 | (f"b {name}.py:3", ""), | |
|
511 | ] + extra_step + [ | |||
505 | ("step", "1---> 3 pass # should not stop here except"), |
|
512 | ("step", "1---> 3 pass # should not stop here except"), | |
506 | ("step", "---> 38 @pdb_skipped_decorator"), |
|
513 | ("step", "---> 38 @pdb_skipped_decorator"), | |
507 | ("continue", ""), |
|
514 | ("continue", ""), |
General Comments 0
You need to be logged in to leave comments.
Login now