Message399485
| Author | iritkatriel |
|---|---|
| Recipients | corona10, iritkatriel, vstinner |
| Date | 2021-08-12.22:41:28 |
| SpamBayes Score | -1.0 |
| Marked as misclassified | Yes |
| Message-id | <1628808088.68.0.0581797771016.issue44895@roundup.psfhosted.org> |
| In-reply-to |
| Content | |
|---|---|
My smallest failing example so far:
def test_recursion_in_except_handler(self):
self.test_no_hang_on_context_chain_cycle2()
def set_relative_recursion_limit(n):
depth = 1
while True:
try:
sys.setrecursionlimit(depth)
except RecursionError:
depth += 1
else:
break
sys.setrecursionlimit(depth+n)
def recurse_in_body_and_except():
try:
recurse_in_body_and_except()
except:
recurse_in_body_and_except()
recursionlimit = sys.getrecursionlimit()
try:
set_relative_recursion_limit(10)
try:
recurse_in_body_and_except()
except RecursionError:
pass
else:
self.fail("Should have raised a RecursionError")
finally:
sys.setrecursionlimit(recursionlimit) |
|
| History | |||
|---|---|---|---|
| Date | User | Action | Args |
| 2021-08-12 22:41:28 | iritkatriel | set | recipients: + iritkatriel, vstinner, corona10 |
| 2021-08-12 22:41:28 | iritkatriel | set | messageid: <1628808088.68.0.0581797771016.issue44895@roundup.psfhosted.org> |
| 2021-08-12 22:41:28 | iritkatriel | link | issue44895 messages |
| 2021-08-12 22:41:28 | iritkatriel | create | |