mirror of https://github.com/python/cpython
Merge heads
This commit is contained in:
commit
d8ea31417a
|
@ -94,6 +94,10 @@ class SysModuleTest(unittest.TestCase):
|
||||||
self.assertRaises(TypeError, sys.exit, 42, 42)
|
self.assertRaises(TypeError, sys.exit, 42, 42)
|
||||||
|
|
||||||
# call without argument
|
# call without argument
|
||||||
|
with self.assertRaises(SystemExit) as cm:
|
||||||
|
sys.exit()
|
||||||
|
self.assertIsNone(cm.exception.code)
|
||||||
|
|
||||||
rc, out, err = assert_python_ok('-c', 'import sys; sys.exit()')
|
rc, out, err = assert_python_ok('-c', 'import sys; sys.exit()')
|
||||||
self.assertEqual(rc, 0)
|
self.assertEqual(rc, 0)
|
||||||
self.assertEqual(out, b'')
|
self.assertEqual(out, b'')
|
||||||
|
|
Loading…
Reference in New Issue