Skip to content

Commit 57ad1e8

Browse files
Fix a test
1 parent c8e5277 commit 57ad1e8

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

testing/python/fixtures.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66
import pytest
77
from _pytest.compat import getfuncargnames
88
from _pytest.config import ExitCode
9+
from _pytest.fixtures import deduplicate_names
910
from _pytest.fixtures import TopRequest
1011
from _pytest.monkeypatch import MonkeyPatch
1112
from _pytest.pytester import get_public_names
@@ -4709,7 +4710,7 @@ def test(fm):
47094710

47104711

47114712
def test_deduplicate_names(pytester: Pytester) -> None:
4712-
items = fixtures.deduplicate_names("abacd")
4713+
items = deduplicate_names("abacd")
47134714
assert items == ("a", "b", "c", "d")
4714-
items = fixtures.deduplicate_names(items + ("g", "f", "g", "e", "b"))
4715+
items = deduplicate_names(items + ("g", "f", "g", "e", "b"))
47154716
assert items == ("a", "b", "c", "d", "g", "f", "e")

0 commit comments

Comments
 (0)