(self)
| 4245 | self.assertIn(f"pdb: error: unrecognized arguments: --spam", stderr.split('\n')[1]) |
| 4246 | |
| 4247 | def test_blocks_at_first_code_line(self): |
| 4248 | script = """ |
| 4249 | #This is a comment, on line 2 |
| 4250 | |
| 4251 | print("SUCCESS") |
| 4252 | """ |
| 4253 | commands = """ |
| 4254 | quit |
| 4255 | """ |
| 4256 | stdout, stderr = self.run_pdb_module(script, commands) |
| 4257 | self.assertTrue(any("__main__.py(4)<module>()" |
| 4258 | in l for l in stdout.splitlines()), stdout) |
| 4259 | |
| 4260 | def test_file_modified_after_execution(self): |
| 4261 | script = """ |
nothing calls this directly
no test coverage detected