diff options
author | Yury Selivanov <yselivanov@sprymix.com> | 2015-07-03 01:04:23 -0400 |
---|---|---|
committer | Yury Selivanov <yselivanov@sprymix.com> | 2015-07-03 01:04:23 -0400 |
commit | f488fb422a641aa7c38eb63c09f459e4baff7bc4 (patch) | |
tree | f09d64f919af622c0ebf28adb9a3bfec567e47c8 /Lib/test/test_class.py | |
parent | 27be130ec71fa95e2496bd9e42505aa6c7457682 (diff) | |
download | cpython-git-f488fb422a641aa7c38eb63c09f459e4baff7bc4.tar.gz |
Issue #19235: Add new RecursionError exception. Patch by Georg Brandl.
Diffstat (limited to 'Lib/test/test_class.py')
-rw-r--r-- | Lib/test/test_class.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Lib/test/test_class.py b/Lib/test/test_class.py index 6036e36032..4d554a397b 100644 --- a/Lib/test/test_class.py +++ b/Lib/test/test_class.py @@ -500,10 +500,10 @@ class ClassTests(unittest.TestCase): try: a() # This should not segfault - except RuntimeError: + except RecursionError: pass else: - self.fail("Failed to raise RuntimeError") + self.fail("Failed to raise RecursionError") def testForExceptionsRaisedInInstanceGetattr2(self): # Tests for exceptions raised in instance_getattr2(). |