# XXX _threading_local keeps the local of the last stopped thread alive.
# Assignment to the same thread local frees it sometimes (!)
local.someothervar = None
deadlist = [weak for weak in weaklist if weak() is None]
self.assertIn(len(deadlist), (n-1, n), (n, len(deadlist)))
# 2) GC the cycle (triggers threadmodule.c::local_clear