Fix #29519: weakref spewing exceptions during interp finalization
2 files changed