]> granicus.if.org Git - python/commit
SF patch 1501987: Remove randomness from test_exceptions,
authorTim Peters <tim.peters@gmail.com>
Wed, 7 Jun 2006 06:57:51 +0000 (06:57 +0000)
committerTim Peters <tim.peters@gmail.com>
Wed, 7 Jun 2006 06:57:51 +0000 (06:57 +0000)
commit80dc76e9072c4adaedf5c52032699b859c82eca2
tree5315ceff7d08766115bc54d8d91ce56d054bf8e5
parentc27d655c00ec08f44abea646ae06456cbcca84b6
SF patch 1501987:  Remove randomness from test_exceptions,
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).
Lib/test/test_exceptions.py