# HG changeset patch # User Mads Kiilerich # Date 1358289010 -3600 # Node ID e389a25e7e604b7cf2f7168b1837b7749bdd123c # Parent 6880eae9f861efb2f017eb288b3a9617ee9d25cc tests: run with PYTHONHASHSEED=random Python set and dict iteration order is in principle undefined but usually 'quite stable'. Setting PYTHONHASHSEED=random will make the iteration order more random in Python 2.6.8 and 2.7.3 and where it has been backported. This can thus help spot dependencies on undefined behaviour and prevent future problems. diff -r 6880eae9f861 -r e389a25e7e60 tests/run-tests.py --- a/tests/run-tests.py Tue Jan 15 13:33:28 2013 -0800 +++ b/tests/run-tests.py Tue Jan 15 23:30:10 2013 +0100 @@ -1252,6 +1252,7 @@ os.environ['no_proxy'] = '' os.environ['NO_PROXY'] = '' os.environ['TERM'] = 'xterm' + os.environ['PYTHONHASHSEED'] = 'random' # unset env related to hooks for k in os.environ.keys():