(self, pytester: Pytester)
| 462 | self.flush(child) |
| 463 | |
| 464 | def test_set_trace_capturing_afterwards(self, pytester: Pytester) -> None: |
| 465 | p1 = pytester.makepyfile( |
| 466 | """ |
| 467 | import pdb |
| 468 | def test_1(): |
| 469 | pdb.set_trace() |
| 470 | def test_2(): |
| 471 | print("hello") |
| 472 | assert 0 |
| 473 | """ |
| 474 | ) |
| 475 | child = pytester.spawn_pytest(str(p1)) |
| 476 | child.expect("test_1") |
| 477 | child.send("c\n") |
| 478 | child.expect("test_2") |
| 479 | child.expect("Captured") |
| 480 | child.expect("hello") |
| 481 | child.sendeof() |
| 482 | child.read() |
| 483 | self.flush(child) |
| 484 | |
| 485 | def test_pdb_interaction_doctest(self, pytester: Pytester) -> None: |
| 486 | p1 = pytester.makepyfile( |
nothing calls this directly
no test coverage detected