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

Method test_exit_code_error

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

Source from the content-addressed store, hash-verified

648 self.assertEqual(ip.user_ns["_exit_code"], 0)
649
650 def test_exit_code_error(self):
651 self.system("exit 1")
652 self.assertEqual(ip.user_ns["_exit_code"], 1)
653
654 @skipif(not hasattr(signal, "SIGALRM"))
655 def test_exit_code_signal(self):

Callers 1

test_exit_code_errorMethod · 0.45

Calls 1

systemMethod · 0.80

Tested by

no test coverage detected