[Pytest-commit] Issue #125: add a {randomseed} substitution string (hpk42/tox)
Chris Jerdonek
issues-reply at bitbucket.org
Thu Sep 26 12:40:11 CEST 2013
New issue 125: add a {randomseed} substitution string
https://bitbucket.org/hpk42/tox/issue/125/add-a-randomseed-substitution-string
Chris Jerdonek:
It would be nice to expose a special substitution string called something like {randomseed} that would generate a random integer value each time it is used. This would be useful for example in cases like this:
setenv =
PYTHONHASHSEED = {randomseed}
An associated command-line option `--randomseed` to force it to a particular
value would also be good. See this [e-mail thread](http://lists.idyll.org/pipermail/testing-in-python/2013-September/005679.html) for background.
Note that to be consistent with supporting `--randomseed`, {randomseed} should probably yield the same value every time it is used (e.g. if it appears more than once in tox.ini). In other words, it is a global value established once when tox is invoked.
More information about the pytest-commit
mailing list