# HG changeset patch # User Mads Kiilerich # Date 1358289010 -3600 # Node ID c0daf79e56801f26627cda1f64867a7f59a986c6 # Parent abba08b9f8e0b33132a94cde9e9fe69a5b991591 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. [ original upstream message ] diff -r abba08b9f8e0 -r c0daf79e5680 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():