This commit is contained in:
Miro Hrončok
2021-07-12 16:32:27 +02:00
committed by Bruno Oliveira
parent 69212d15fa
commit d9b8f7cf0a
2 changed files with 5 additions and 14 deletions

View File

@@ -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"""