diff --git a/tests/test_integration_tox3.py b/tests/test_integration_tox3.py index 0f5eb35..7c0600b 100644 --- a/tests/test_integration_tox3.py +++ b/tests/test_integration_tox3.py @@ -212,7 +212,7 @@ def test_allenvs_print_extras(print_extras_stdout_arg): for env in envs_from_tox_ini(): expected += "dev\nfull\n" expected += tox_footer(spaces=0) + "\n" - assert result.stdout == expected + assert sorted(result.stdout) == sorted(expected) @pytest.mark.parametrize("toxenv", envs_from_tox_ini()) @@ -264,7 +264,7 @@ def test_allenvs_print_extras_to_file(tmp_path, option): {tox_footer()} """ ).lstrip() - assert result.stdout == expected + assert sorted(result.stdout) == sorted(expected) def test_allenvs_print_deps_to_existing_file(tmp_path): diff --git a/tests/test_integration_tox4.py b/tests/test_integration_tox4.py index 34e8b0d..16e01d3 100644 --- a/tests/test_integration_tox4.py +++ b/tests/test_integration_tox4.py @@ -228,7 +228,7 @@ def test_allenvs_print_extras_to_file(tmp_path, option): for env in envs_from_tox_ini()[:-1]: expected += f"{env}: OK\n" expected += tox_footer(spaces=0) + "\n" - assert prep_tox_output(result.stdout) == expected + assert sorted(prep_tox_output(result.stdout)) == sorted(expected) def test_allenvs_print_deps_to_existing_file(tmp_path):