Issue #20510: Merge with 3.3

This commit is contained in:
Zachary Ware 2014-02-19 10:46:05 -06:00
commit 1d7ba5cd7b
1 changed files with 4 additions and 0 deletions

View File

@ -94,6 +94,10 @@ class SysModuleTest(unittest.TestCase):
self.assertRaises(TypeError, sys.exit, 42, 42)
# 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()')
self.assertEqual(rc, 0)
self.assertEqual(out, b'')