py.test with xdist is not executing tests parametrized with random values
问题 Does anybody noticed the following strange behaviour for pytest and xdist. When trying to run the test that is parametrized with some randomly selected values the test are not actualy run. The same test is executed without any problems if xdist is not used. Following code can be used to reproduce this. import pytest import random PARAMS_NUMBER = 3 PARAMS = [] for i in range(PARAMS_NUMBER): PARAMS.append(random.randrange(0, 1000)) @pytest.mark.parametrize('rand_par', PARAMS) def test_random