• Tim Peters's avatar
    SF patch 1501987: Remove randomness from test_exceptions, · 80dc76e9
    Tim Peters yazdı
    from ?iga Seilnacht (sorry about the name, but Firefox
    on my box can't display the first character of the name --
    the SF "Unix name" is zseil).
    
    This appears to cure the oddball intermittent leaks across
    runs when running test_exceptions under -R.  I'm not sure
    why, but I'm too sleepy to care ;-)
    
    The thrust of the SF patch was to remove randomness in the
    pickle protocol used.  I changed the patch to use
    range(pickle.HIGHEST_PROTOCOL + 1), to try both pickle and
    cPickle, and randomly mucked with other test lines to put
    statements on their own lines.
    
    Not a bugfix candidate (this is fiddling new-in-2.5 code).
    80dc76e9
test_exceptions.py 11.6 KB