diff --git a/testing/python/fixtures.py b/testing/python/fixtures.py index d05fd2096d6..bc091bb1f27 100644 --- a/testing/python/fixtures.py +++ b/testing/python/fixtures.py @@ -4878,37 +4878,3 @@ def test_result(): ) result = pytester.runpytest() assert result.ret == 0 - - -def test_reordering_in_multiple_parametrization(pytester: Pytester) -> None: - pytester.makepyfile( - """ - import pytest - @pytest.mark.parametrize("arg2", [3, 4]) - @pytest.mark.parametrize("arg1", [0, 1, 2], scope='module') - def test1(arg1, arg2): - pass - - def test2(): - pass - - @pytest.mark.parametrize("arg1", [0, 1, 2], scope='module') - def test3(arg1): - pass - """ - ) - result = pytester.runpytest("--collect-only") - result.stdout.re_match_lines( - [ - r" ", - r" ", - r" ", - r" ", - r" ", - r" ", - r" ", - r" ", - r" ", - r" ", - ] - ) diff --git a/testing/python/metafunc.py b/testing/python/metafunc.py index 2dd85607e71..be224d9e20b 100644 --- a/testing/python/metafunc.py +++ b/testing/python/metafunc.py @@ -1005,14 +1005,14 @@ def test3(arg1): result.stdout.re_match_lines( [ r" ", - r" ", r" ", + r" ", + r" ", r" ", + r" ", r" ", - r" ", r" ", r" ", - r" ", r" ", ] )