From f2d1c162e2dd399f022723b09ede4d2b1358fb0e Mon Sep 17 00:00:00 2001 From: Tomas Janousek Date: Sun, 5 Jul 2020 10:55:56 +0200 Subject: [PATCH] tests: Fix "Different tests were collected" in python 3.5 pytest-xdist requires all subprocesses to collect the tests in the same order. Python 3.5, however, randomizes order of dict keys. --- tests/conftest.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/conftest.py b/tests/conftest.py index edfa673..41a7b1a 100644 --- a/tests/conftest.py +++ b/tests/conftest.py @@ -21,7 +21,7 @@ markup_headers = { } -@pytest.fixture(params=markup_headers) +@pytest.fixture(params=sorted(markup_headers.keys())) def test_syntax(request): markup = request.param format_header_dict = markup_headers[markup]