From 859979fa54b79bb59c4f8b6d5b2ec9978536722c Mon Sep 17 00:00:00 2001 From: Sadra Barikbin Date: Thu, 27 Jun 2024 20:24:35 +0330 Subject: [PATCH] Remove redundant test --- testing/python/fixtures.py | 34 ---------------------------------- testing/python/metafunc.py | 8 ++++---- 2 files changed, 4 insertions(+), 38 deletions(-) diff --git a/testing/python/fixtures.py b/testing/python/fixtures.py index d05fd2096..bc091bb1f 100644 --- a/testing/python/fixtures.py +++ b/testing/python/fixtures.py @@ -4878,37 +4878,3 @@ def test_subfixture_teardown_order(pytester: Pytester) -> None: ) 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 2dd85607e..be224d9e2 100644 --- a/testing/python/metafunc.py +++ b/testing/python/metafunc.py @@ -1005,14 +1005,14 @@ class TestMetafunc: result.stdout.re_match_lines( [ r" ", - r" ", r" ", - r" ", - r" ", + r" ", r" ", + r" ", + r" ", + r" ", r" ", r" ", - r" ", r" ", ] )