• Kevin Modzelewski's avatar
    Try to make some weakref tests more reliable · 01a1f740
    Kevin Modzelewski authored
    They test what happens when a weakref's referent gets collected, but
    I guess in certain build configurations we would keep the object alive
    due to some sort of different memory layout (got saved in a CSR or
    a stack slot that didn't get rewritten, etc).
    
    Adding some extra function calls seems to help, though it's hard to tell
    how reliable it is.
    01a1f740
weakref1.py 292 Bytes