mirror of
https://github.com/jart/cosmopolitan.git
synced 2025-05-22 21:32:31 +00:00
Add stack overflow checking to Python
This commit is contained in:
parent
47a53e143b
commit
7521bf9e73
16 changed files with 47 additions and 46 deletions
4
third_party/python/Lib/test/test_class.py
vendored
4
third_party/python/Lib/test/test_class.py
vendored
|
@ -490,8 +490,6 @@ class ClassTests(unittest.TestCase):
|
|||
|
||||
self.assertRaises(TypeError, hash, C2())
|
||||
|
||||
|
||||
@unittest.skipUnless(cosmo.MODE == "dbg", "disabled recursion checking")
|
||||
def testSFBug532646(self):
|
||||
# Test for SF bug 532646
|
||||
|
||||
|
@ -502,7 +500,7 @@ class ClassTests(unittest.TestCase):
|
|||
|
||||
try:
|
||||
a() # This should not segfault
|
||||
except RecursionError:
|
||||
except (RecursionError, MemoryError):
|
||||
pass
|
||||
else:
|
||||
self.fail("Failed to raise RecursionError")
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue