tests: run with PYTHONHASHSEED=random stable
authorMads Kiilerich <madski@unity3d.com>
Tue, 15 Jan 2013 23:30:10 +0100
branchstable
changeset 1196 c0daf79e5680
parent 1195 abba08b9f8e0
child 1197 10e27c438792
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 ]
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():