Lines Matching defs:exit
185 self.assertRaises(TypeError, sys.exit, 42, 42)
189 sys.exit()
192 rc, out, err = assert_python_ok('-c', 'import sys; sys.exit()')
199 sys.exit(42)
205 sys.exit((42,))
210 sys.exit("exit")
211 self.assertEqual(cm.exception.code, "exit")
215 sys.exit((17, 23))
218 # test that the exit machinery handles SystemExits properly
231 # test that stderr buffer is flushed before the exit message is written
234 r'import sys; sys.stderr.write("unflushed,"); sys.exit("message")',
237 # test that the exit message is written with backslashreplace error
240 r'import sys; sys.exit("surrogates:\uDCFF")',
246 r'import sys; sys.exit("h\xe9")',
992 # AtExit destructor will be called at Python exit