Skip to content

Commit d5bf27c

Browse files
Remove a test
1 parent 82a4e0b commit d5bf27c

File tree

1 file changed

+0
-16
lines changed

1 file changed

+0
-16
lines changed

testing/python/metafunc.py

Lines changed: 0 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -986,22 +986,6 @@ def test_parametrize_twoargs(self) -> None:
986986
assert metafunc._calls[1].params == dict(x=3, y=4)
987987
assert metafunc._calls[1].id == "3-4"
988988

989-
def test_parametrize_with_duplicate_args(self, pytester: Pytester) -> None:
990-
pytester.makepyfile(
991-
"""
992-
import pytest
993-
def pytest_generate_tests(metafunc):
994-
metafunc.parametrize('x', [0, 1])
995-
metafunc.parametrize('x', [2, 3])
996-
997-
def test(x):
998-
pass
999-
"""
1000-
)
1001-
result = pytester.runpytest("--collect-only")
1002-
assert any(["duplicate 'x'" in line for line in result.outlines])
1003-
result.assert_outcomes(errors=1)
1004-
1005989
def test_parametrize_with_duplicate_values(self) -> None:
1006990
metafunc = self.Metafunc(lambda x, y: None)
1007991
metafunc.parametrize(("x", "y"), [(1, 2), (3, 4), (1, 5), (2, 2)])

0 commit comments

Comments
 (0)