We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9b10ae7 commit 30d3231Copy full SHA for 30d3231
testing/python/metafunc.py
@@ -993,6 +993,14 @@ def test_parametrize_with_duplicate_values(self) -> None:
993
assert metafunc._calls[2].indices == dict(x=0, y=2)
994
assert metafunc._calls[3].indices == dict(x=2, y=0)
995
996
+ def test_parametrize_with_unhashable_duplicate_values(self) -> None:
997
+ metafunc = self.Metafunc(lambda x: None)
998
+ metafunc.parametrize(("x"), [[1], [2], [1]])
999
+ assert len(metafunc._calls) == 3
1000
+ assert metafunc._calls[0].indices == dict(x=0)
1001
+ assert metafunc._calls[1].indices == dict(x=1)
1002
+ assert metafunc._calls[2].indices == dict(x=2)
1003
+
1004
def test_high_scoped_parametrize_reordering(self, pytester: Pytester) -> None:
1005
pytester.makepyfile(
1006
"""
0 commit comments