diff options
author | Yury Selivanov <yselivanov@sprymix.com> | 2015-07-03 01:10:11 -0400 |
---|---|---|
committer | Yury Selivanov <yselivanov@sprymix.com> | 2015-07-03 01:10:11 -0400 |
commit | bb215e23004af8e8105fae4e132a63b0c25ea47c (patch) | |
tree | 1e0023f5f39b23e58178ffeb992ac5e2264ff1e9 /Lib/test/test_sys.py | |
parent | 1c5e5a89b4bc1a7b9dbd0375fbd76dfdadcb8605 (diff) | |
parent | f488fb422a641aa7c38eb63c09f459e4baff7bc4 (diff) | |
download | cpython-git-bb215e23004af8e8105fae4e132a63b0c25ea47c.tar.gz |
Merge 3.5 (Issue #19235)
Diffstat (limited to 'Lib/test/test_sys.py')
-rw-r--r-- | Lib/test/test_sys.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/Lib/test/test_sys.py b/Lib/test/test_sys.py index 494a53bf24..83549bc537 100644 --- a/Lib/test/test_sys.py +++ b/Lib/test/test_sys.py @@ -211,8 +211,8 @@ class SysModuleTest(unittest.TestCase): for i in (50, 1000): # Issue #5392: stack overflow after hitting recursion limit twice sys.setrecursionlimit(i) - self.assertRaises(RuntimeError, f) - self.assertRaises(RuntimeError, f) + self.assertRaises(RecursionError, f) + self.assertRaises(RecursionError, f) finally: sys.setrecursionlimit(oldlimit) @@ -225,7 +225,7 @@ class SysModuleTest(unittest.TestCase): def f(): try: f() - except RuntimeError: + except RecursionError: f() sys.setrecursionlimit(%d) |