Skip to content

Commit

Permalink
doctest: Remove top-level circular import for fixture
Browse files Browse the repository at this point in the history
  • Loading branch information
tony committed Sep 24, 2022
1 parent 4b555b8 commit 97476b1
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/_pytest/doctest.py
Expand Up @@ -32,6 +32,7 @@
from _pytest.compat import safe_getattr
from _pytest.config import Config
from _pytest.config.argparsing import Parser
from _pytest.fixtures import fixture
from _pytest.fixtures import FixtureRequest
from _pytest.nodes import Collector
from _pytest.nodes import Item
Expand Down Expand Up @@ -733,7 +734,7 @@ def _get_report_choice(key: str) -> int:
}[key]


@pytest.fixture(scope="session")
@fixture(scope="session")
def doctest_namespace() -> Dict[str, Any]:
"""Fixture that returns a :py:class:`dict` that will be injected into the
namespace of doctests.
Expand Down

0 comments on commit 97476b1

Please sign in to comment.