Bug Fix 11456: Duplicated parameters in @pytest.mark.parametrize
This commit is contained in:
parent
0d15eab61d
commit
be6b096de4
|
@ -351,9 +351,8 @@ class TestGeneralUsage:
|
||||||
pass
|
pass
|
||||||
"""
|
"""
|
||||||
)
|
)
|
||||||
res = pytester.runpytest(p.name + "::" + "test_func[1]")
|
result = pytester.runpytest(p)
|
||||||
assert res.ret == 0
|
result.assert_outcomes(failed=0, passed=8)
|
||||||
res.stdout.fnmatch_lines(["*1 passed*"])
|
|
||||||
|
|
||||||
def test_direct_addressing_selects_duplicates_1(self, pytester: Pytester) -> None:
|
def test_direct_addressing_selects_duplicates_1(self, pytester: Pytester) -> None:
|
||||||
p = pytester.makepyfile(
|
p = pytester.makepyfile(
|
||||||
|
@ -365,9 +364,8 @@ class TestGeneralUsage:
|
||||||
pass
|
pass
|
||||||
"""
|
"""
|
||||||
)
|
)
|
||||||
res = pytester.runpytest(p.name + "::" + "test_func[1]")
|
result = pytester.runpytest(p)
|
||||||
assert res.ret == 0
|
result.assert_outcomes(failed=0, passed=9)
|
||||||
res.stdout.fnmatch_lines(["*1 passed*"])
|
|
||||||
|
|
||||||
def test_direct_addressing_notfound(self, pytester: Pytester) -> None:
|
def test_direct_addressing_notfound(self, pytester: Pytester) -> None:
|
||||||
p = pytester.makepyfile(
|
p = pytester.makepyfile(
|
||||||
|
|
Loading…
Reference in New Issue