Skip to content

Commit 65f28a4

Browse files
committed
fixup! Decorate already deprecated functions
1 parent d0d8c7b commit 65f28a4

File tree

1 file changed

+3
-7
lines changed

1 file changed

+3
-7
lines changed

tests/conftest.py

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,10 @@
11
"""Test directory configuration."""
22

3+
from __future__ import annotations
4+
35
import random
46
import warnings
5-
from typing import Any, Callable, Iterator, Union
7+
from typing import Callable, Iterator, Union
68

79
import pytest
810

@@ -16,12 +18,6 @@ def pytest_addoption(parser: pytest.Parser) -> None:
1618
parser.addoption("--no-window", action="store_true", help="Skip tests which need a rendering context.")
1719

1820

19-
@pytest.fixture(autouse=True)
20-
def add_tcod_to_namespace(doctest_namespace: dict[str, Any]) -> None:
21-
doctest_namespace["tcod"] = tcod
22-
doctest_namespace["libtcodpy"] = libtcodpy
23-
24-
2521
@pytest.fixture
2622
def uses_window(request: pytest.FixtureRequest) -> Iterator[None]:
2723
"""Marks tests which require a rendering context."""

0 commit comments

Comments
 (0)