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

Method setUp

Lib/test/test_code_module.py:330–332  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

328class TestInteractiveConsoleLocalExit(unittest.TestCase, MockSys):
329
330 def setUp(self):
331 self.console = code.InteractiveConsole(local_exit=True)
332 self.mock_sys()
333
334 @unittest.skipIf(sys.flags.no_site, "exit() isn't defined unless there's a site module")
335 def test_exit(self):

Callers

nothing calls this directly

Calls 1

mock_sysMethod · 0.80

Tested by

no test coverage detected