(self)
| 3694 | ) |
| 3695 | |
| 3696 | def test_spec(self): |
| 3697 | # Test that __main__.__spec__ is set to None when running a script |
| 3698 | script = """ |
| 3699 | import __main__ |
| 3700 | print(__main__.__spec__) |
| 3701 | """ |
| 3702 | |
| 3703 | commands = "continue" |
| 3704 | |
| 3705 | stdout, _ = self.run_pdb_script(script, commands) |
| 3706 | self.assertIn('None', stdout) |
| 3707 | |
| 3708 | def test_script_target_anonymous_pipe(self): |
| 3709 | """ |
nothing calls this directly
no test coverage detected