Skip to content

Commit 5d038d9

Browse files
Remove redundant test
1 parent 79ff930 commit 5d038d9

File tree

2 files changed

+3
-37
lines changed

2 files changed

+3
-37
lines changed

testing/python/fixtures.py

Lines changed: 0 additions & 34 deletions
Original file line numberDiff line numberDiff line change
@@ -4878,37 +4878,3 @@ def test_result():
48784878
)
48794879
result = pytester.runpytest()
48804880
assert result.ret == 0
4881-
4882-
4883-
def test_reordering_in_multiple_parametrization(pytester: Pytester) -> None:
4884-
pytester.makepyfile(
4885-
"""
4886-
import pytest
4887-
@pytest.mark.parametrize("arg2", [3, 4])
4888-
@pytest.mark.parametrize("arg1", [0, 1, 2], scope='module')
4889-
def test1(arg1, arg2):
4890-
pass
4891-
4892-
def test2():
4893-
pass
4894-
4895-
@pytest.mark.parametrize("arg1", [0, 1, 2], scope='module')
4896-
def test3(arg1):
4897-
pass
4898-
"""
4899-
)
4900-
result = pytester.runpytest("--collect-only")
4901-
result.stdout.re_match_lines(
4902-
[
4903-
r" <Function test1\[0-3\]>",
4904-
r" <Function test3\[0\]>",
4905-
r" <Function test1\[0-4\]>",
4906-
r" <Function test3\[1\]>",
4907-
r" <Function test1\[1-3\]>",
4908-
r" <Function test3\[2\]>",
4909-
r" <Function test1\[1-4\]>",
4910-
r" <Function test1\[2-3\]>",
4911-
r" <Function test1\[2-4\]>",
4912-
r" <Function test2>",
4913-
]
4914-
)

testing/python/metafunc.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1005,14 +1005,14 @@ def test3(arg1):
10051005
result.stdout.re_match_lines(
10061006
[
10071007
r" <Function test1\[0-3\]>",
1008-
r" <Function test1\[0-4\]>",
10091008
r" <Function test3\[0\]>",
1009+
r" <Function test1\[0-4\]>",
1010+
r" <Function test3\[1\]>",
10101011
r" <Function test1\[1-3\]>",
1012+
r" <Function test3\[2\]>",
10111013
r" <Function test1\[1-4\]>",
1012-
r" <Function test3\[1\]>",
10131014
r" <Function test1\[2-3\]>",
10141015
r" <Function test1\[2-4\]>",
1015-
r" <Function test3\[2\]>",
10161016
r" <Function test2>",
10171017
]
10181018
)

0 commit comments

Comments
 (0)