From d89e68ed899a84646cd82fa9287ef328511b3f5c Mon Sep 17 00:00:00 2001 From: TanyaAgarwal28 <8979149361t@gmail.com> Date: Sun, 8 Oct 2023 18:39:42 +0530 Subject: [PATCH] Bug Fix 11456: Duplicated parameters in @pytest.mark.parametrize --- testing/acceptance_test.py | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/testing/acceptance_test.py b/testing/acceptance_test.py index b6e438e3f..bf33f03c6 100644 --- a/testing/acceptance_test.py +++ b/testing/acceptance_test.py @@ -367,6 +367,19 @@ class TestGeneralUsage: result = pytester.runpytest(p) result.assert_outcomes(failed=0, passed=9) + def test_direct_addressing_selects_duplicates_2(self, pytester: Pytester) -> None: + p = pytester.makepyfile( + """ + import pytest + + @pytest.mark.parametrize("a", [a,b,c,a_1]) + def test_func(a): + pass + """ + ) + result = pytester.runpytest(p) + result.assert_outcomes(failed=0, passed=9) + def test_direct_addressing_notfound(self, pytester: Pytester) -> None: p = pytester.makepyfile( """