@@ -77,10 +77,13 @@ def test_pdb_use(tmp_path, setup_test_repo):
7777 assert """The pytest entry point.""" in output
7878 assert "(Pdb)" not in output
7979 output = pdb .use (environment , command = "c" ).observation
80- assert "1 failed, 1 passed" in pdb .pdb_obs
81- assert "test_fail.py::test_fail FAILED" in pdb .pdb_obs
82- assert "test_pass.py::test_pass PASSED" in pdb .pdb_obs
83- assert "Reached the end of the file. Restarting the debugging session." in output
80+ assert "1 failed, 1 passed" in output
81+ assert "test_fail.py::test_fail FAILED" in output
82+ assert "test_pass.py::test_pass PASSED" in output
83+ assert "Reached the end of the program. Restarting the debugging session." in output
84+ assert "pytest/__main__.py" in output
85+ assert '-> """The pytest entry point."""' in output
86+ assert 'Context around the current frame:\n 1 -> """The pytest entry point.""""'
8487 assert "(Pdb)" not in output
8588
8689
@@ -152,10 +155,13 @@ def test_pdb_use_default_environment_entrypoint(tmp_path, setup_test_repo):
152155 assert "(Pdb)" not in output
153156
154157 output = pdb .use (environment , command = "c" ).observation
155- assert "1 failed, 1 passed" in pdb .pdb_obs
156- assert "test_fail.py::test_fail" in pdb .pdb_obs
157- assert "test_pass.py::test_pass" not in pdb .pdb_obs
158- assert "Reached the end of the file. Restarting the debugging session." in output
158+ assert "1 failed, 1 passed" in output
159+ assert "test_fail.py::test_fail" in output
160+ assert "test_pass.py::test_pass" not in output
161+ assert "Reached the end of the program. Restarting the debugging session." in output
162+ assert "pytest/__main__.py" in output
163+ assert '-> """The pytest entry point."""' in output
164+ assert 'Context around the current frame:\n 1 -> """The pytest entry point.""""'
159165 assert "(Pdb)" not in output
160166
161167
@@ -182,10 +188,13 @@ def test_pdb_use_docker_terminal(tmp_path, setup_test_repo):
182188 assert "(Pdb)" not in output
183189
184190 output = pdb .use (environment , command = "c" ).observation
185- assert "1 failed, 1 passed" in pdb .pdb_obs
186- assert "test_fail.py::test_fail FAILED" in pdb .pdb_obs
187- assert "test_pass.py::test_pass PASSED" in pdb .pdb_obs
188- assert "Reached the end of the file. Restarting the debugging session." in output
191+ assert "1 failed, 1 passed" in output
192+ assert "test_fail.py::test_fail FAILED" in output
193+ assert "test_pass.py::test_pass PASSED" in output
194+ assert "Reached the end of the program. Restarting the debugging session." in output
195+ assert "pytest/__main__.py" in output
196+ assert '-> """The pytest entry point."""' in output
197+ assert 'Context around the current frame:\n 1 -> """The pytest entry point.""""'
189198 assert "(Pdb)" not in output
190199
191200
0 commit comments