MCPcopy Index your code
hub / github.com/python/cpython / test_spec

Method test_spec

Lib/test/test_pdb.py:3696–3706  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

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 """

Callers

nothing calls this directly

Calls 2

run_pdb_scriptMethod · 0.95
assertInMethod · 0.80

Tested by

no test coverage detected