Allow pythonhashseed to be random

We may miss some bugs due to non-random pythonhashseed

So we need either ensure that we test in an environment where this
seed can be random or require from operator to provide PYTHONHASHSEED=0
to solar process, for example send it to docker container
This commit is contained in:
Dmitry Shulyak 2015-11-30 16:24:21 +02:00
parent fead38d0bc
commit 4c37224a56
2 changed files with 4 additions and 8 deletions

View File

@ -374,13 +374,10 @@ def test_simple_to_listdict_inputs(rk):
r4.save()
inputs = set(pytest.dicts_to_hashable(r2.inputs['input']))
expected_inputs = set(pytest.dicts_to_hashable([
{u'input2': 1115,
u'input1': 110},
{u'input2': 115,
u'input1': 1110},
{u'input2': 15,
u'input1': 10}]))
expected_inputs = set(pytest.dicts_to_hashable(
[{u'input2': 1115, u'input1': 110},
{u'input2': 115, u'input1': 1110},
{u'input2': 15, u'input1': 10}]))
assert inputs == expected_inputs

View File

@ -7,7 +7,6 @@ envlist = pep8,py27
usedevelop = True
install_command = pip install -U {opts} {packages}
setenv = VIRTUAL_ENV={envdir}
PYTHONHASHSEED=0
deps = -r{toxinidir}/test-requirements.txt
commands = ostestr