diff options
| author | Zachary Ware <zachary.ware@gmail.com> | 2014-02-19 16:46:05 (GMT) |
|---|---|---|
| committer | Zachary Ware <zachary.ware@gmail.com> | 2014-02-19 16:46:05 (GMT) |
| commit | 1d7ba5cd7b7a6f1a419dbf883a5110c640515852 (patch) | |
| tree | 0a43f7a4b34e6f909fd9a28270d471b59b6d200d /Lib/test/test_sys.py | |
| parent | 22234dab05f69fbbe2f906ab58f5abc95382f680 (diff) | |
| parent | 1f9e6017653596775e4fd582a7f4d64ac86eb8bc (diff) | |
| download | cpython-1d7ba5cd7b7a6f1a419dbf883a5110c640515852.zip cpython-1d7ba5cd7b7a6f1a419dbf883a5110c640515852.tar.gz cpython-1d7ba5cd7b7a6f1a419dbf883a5110c640515852.tar.bz2 | |
Issue #20510: Merge with 3.3
Diffstat (limited to 'Lib/test/test_sys.py')
| -rw-r--r-- | 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 index 3bc1243..5a9699f 100644 --- a/Lib/test/test_sys.py +++ b/Lib/test/test_sys.py @@ -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'') |
