diff --git a/pyproject.toml b/pyproject.toml index ae33824604..7174e56225 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -256,8 +256,6 @@ module = [ # tests/test_directives "tests.test_directives.test_directive_code", "tests.test_directives.test_directives_no_typesetting", - # tests/test_environment - "tests.test_environment.test_environment", # tests/test_extensions "tests.test_extensions.test_ext_autodoc_autoclass", "tests.test_extensions.test_ext_autosummary_imports", diff --git a/tests/test_environment/test_environment.py b/tests/test_environment/test_environment.py index 872d0b857c..08e0abdd61 100644 --- a/tests/test_environment/test_environment.py +++ b/tests/test_environment/test_environment.py @@ -21,11 +21,16 @@ from sphinx.environment import ( ) if TYPE_CHECKING: + from collections.abc import Callable + + from sphinx.testing.fixtures import _app_params from sphinx.testing.util import SphinxTestApp @pytest.mark.sphinx('dummy', testroot='basic', copy_test_root=True) -def test_config_status(make_app, app_params): +def test_config_status( + make_app: Callable[..., SphinxTestApp], app_params: _app_params +) -> None: args, kwargs = app_params # clean build