tests: run with PYTHONHASHSEED=random
authorMads Kiilerich <madski@unity3d.com>
Tue, 15 Jan 2013 23:30:10 +0100
changeset 18384 e389a25e7e60
parent 18383 6880eae9f861
child 18385 bafbfe0b450c
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.
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():