(run)
| 231 | |
| 232 | @pytest.mark.parametrize("run", [runners.launch]) |
| 233 | def test_breakpoint_in_package_main(run): |
| 234 | testpkgs = test_data / "testpkgs" |
| 235 | main_py = testpkgs / "pkg1" / "__main__.py" |
| 236 | |
| 237 | with debug.Session() as session: |
| 238 | session.expected_exit_code = 42 |
| 239 | session.config["cwd"] = testpkgs.strpath |
| 240 | |
| 241 | with run(session, targets.Module(name="pkg1")): |
| 242 | session.set_breakpoints(main_py, ["two"]) |
| 243 | |
| 244 | session.wait_for_stop( |
| 245 | "breakpoint", expected_frames=[some.dap.frame(main_py, line="two")] |
| 246 | ) |
| 247 | session.request_continue() |
| 248 | |
| 249 | |
| 250 | def test_add_and_remove_breakpoint(pyfile, target, run): |
nothing calls this directly
no test coverage detected
searching dependent graphs…