MCPcopy Index your code
hub / github.com/ipython/ipython / test_exit_code_ok

Method test_exit_code_ok

tests/test_interactiveshell.py:646–648  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

644 self.system = ip.system_raw
645
646 def test_exit_code_ok(self):
647 self.system("exit 0")
648 self.assertEqual(ip.user_ns["_exit_code"], 0)
649
650 def test_exit_code_error(self):
651 self.system("exit 1")

Callers 1

test_exit_code_okMethod · 0.45

Calls 1

systemMethod · 0.80

Tested by

no test coverage detected