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:
parent
fead38d0bc
commit
4c37224a56
@ -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
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user