[Python-checkins] cpython (merge 3.3 -> default): Issue #20510: Merge with 3.3
zach.ware
python-checkins at python.org
Wed Feb 19 17:46:34 CET 2014
http://hg.python.org/cpython/rev/24412574fe24
changeset: 89276:24412574fe24
parent: 89273:b6df5f8f86d3
parent: 89275:71411d5f3c8b
user: Zachary Ware <zachary.ware at gmail.com>
date: Wed Feb 19 10:46:05 2014 -0600
summary:
Issue #20510: Merge with 3.3
files:
Lib/test/test_sys.py | 4 ++++
1 files changed, 4 insertions(+), 0 deletions(-)
diff --git a/Lib/test/test_sys.py b/Lib/test/test_sys.py
--- a/Lib/test/test_sys.py
+++ b/Lib/test/test_sys.py
@@ -94,6 +94,10 @@
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'')
--
Repository URL: http://hg.python.org/cpython
More information about the Python-checkins
mailing list