MCPcopy Index your code
hub / github.com/RustPython/RustPython / setUp

Method setUp

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

Source from the content-addressed store, hash-verified

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

Callers

nothing calls this directly

Calls 1

mock_sysMethod · 0.80

Tested by

no test coverage detected