Mercurial > hg
diff tests/run-tests.py @ 18384:e389a25e7e60
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.
author | Mads Kiilerich <madski@unity3d.com> |
---|---|
date | Tue, 15 Jan 2013 23:30:10 +0100 |
parents | 6880eae9f861 |
children | e760414be201 |
line wrap: on
line diff
--- 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():