Message399681
The leak seems to be due to the nested definitions of the Exception types A and B. It goes away if I move them out of the function so that it's like:
class A(Exception):
pass
class B(Exception):
pass
def test_no_hang_on_context_chain_cycle2():
try:
try:
raise A()
except A as _a:
a = _a
try:
raise B()
except B as _b:
b = _b
raise b
except B:
pass |
|
Date |
User |
Action |
Args |
2021-08-16 21:05:37 | iritkatriel | set | recipients:
+ iritkatriel, vstinner, chris.jerdonek, lukasz.langa, Mark.Shannon, corona10, pablogsal, miss-islington |
2021-08-16 21:05:37 | iritkatriel | set | messageid: <1629147937.37.0.181140032886.issue44895@roundup.psfhosted.org> |
2021-08-16 21:05:37 | iritkatriel | link | issue44895 messages |
2021-08-16 21:05:37 | iritkatriel | create | |
|