summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChris Jerdonek <chris.jerdonek@gmail.com>2013-09-15 10:20:13 -0700
committerChris Jerdonek <chris.jerdonek@gmail.com>2013-09-15 10:20:13 -0700
commit42a612f41c2d80d6b0eebef655429e5f876fcd8c (patch)
tree1daa4ee5d30bee829135b7432fea3b78ca109a06
parent42388785e022a77b01aab93334b0acb402b781d7 (diff)
downloadpystache-42a612f41c2d80d6b0eebef655429e5f876fcd8c.tar.gz
Set PYTHONHASHSEED to "random" when running tox.
-rw-r--r--HISTORY.md1
-rw-r--r--tox.ini5
2 files changed, 6 insertions, 0 deletions
diff --git a/HISTORY.md b/HISTORY.md
index 922d995..44f5231 100644
--- a/HISTORY.md
+++ b/HISTORY.md
@@ -10,6 +10,7 @@ History
to the test output.
- Added `test_pystache.sh` wrapper script for testing different
PYTHONHASHSEED values.
+- Set PYTHONHASHSEED to "random" when running tox.
- Bugfix: fixed a flaky doctest by making `repr()` deterministic for the
`Attachable` class in `pystache.tests.common`
diff --git a/tox.ini b/tox.ini
index d1eaebf..17cb5a2 100644
--- a/tox.ini
+++ b/tox.ini
@@ -14,6 +14,11 @@ changedir =
{envbindir}
commands =
pystache-test {toxinidir}
+setenv =
+ # TODO: pass in an explicit random value so that we can display the
+ # value when running tests. We can probably do this by having tox
+ # call a wrapper shell script.
+ PYTHONHASHSEED = random
# Check that the spec tests work with PyYAML.
[testenv:py27-yaml]