Backport #8896
This commit is contained in:
committed by
Bruno Oliveira
parent
69212d15fa
commit
d9b8f7cf0a
@@ -448,10 +448,7 @@ class TestMetafunc:
|
||||
enum = pytest.importorskip("enum")
|
||||
e = enum.Enum("Foo", "one, two")
|
||||
result = idmaker(("a", "b"), [pytest.param(e.one, e.two)])
|
||||
if sys.version_info[:2] >= (3, 10):
|
||||
assert result == ["one-two"]
|
||||
else:
|
||||
assert result == ["Foo.one-Foo.two"]
|
||||
assert result == ["Foo.one-Foo.two"]
|
||||
|
||||
def test_idmaker_idfn(self) -> None:
|
||||
"""#351"""
|
||||
|
||||
Reference in New Issue
Block a user