(self)
| 4134 | self.assertTrue(any("SUCCESS" in l for l in stdout.splitlines()), stdout) |
| 4135 | |
| 4136 | def test_module_is_run_as_main(self): |
| 4137 | script = """ |
| 4138 | if __name__ == '__main__': |
| 4139 | print("SUCCESS") |
| 4140 | """ |
| 4141 | commands = """ |
| 4142 | continue |
| 4143 | quit |
| 4144 | """ |
| 4145 | stdout, stderr = self.run_pdb_module(script, commands) |
| 4146 | self.assertTrue(any("SUCCESS" in l for l in stdout.splitlines()), stdout) |
| 4147 | |
| 4148 | def test_run_module_with_args(self): |
| 4149 | commands = """ |
nothing calls this directly
no test coverage detected