diff options
author | Bruno Oliveira <nicoddemus@gmail.com> | 2020-08-17 17:55:37 -0300 |
---|---|---|
committer | Bruno Oliveira <nicoddemus@gmail.com> | 2020-08-19 08:14:25 -0300 |
commit | 52b0cc4f193debc8e16fd386b1644c80d9d329ec (patch) | |
tree | fdb60eabe5f2240e542f63dd901329df10a09ce9 /src/_pytest/hookspec.py | |
parent | 457d351941279cd4d93d9fe9a622aa001b9e322e (diff) | |
download | pytest-52b0cc4f193debc8e16fd386b1644c80d9d329ec.tar.gz |
Remove broken pytest_collect_directory hook
Diffstat (limited to 'src/_pytest/hookspec.py')
-rw-r--r-- | src/_pytest/hookspec.py | 11 |
1 files changed, 0 insertions, 11 deletions
diff --git a/src/_pytest/hookspec.py b/src/_pytest/hookspec.py index ce435901c..e60bfe9f9 100644 --- a/src/_pytest/hookspec.py +++ b/src/_pytest/hookspec.py @@ -12,7 +12,6 @@ from typing import Union import py.path from pluggy import HookspecMarker -from .deprecated import COLLECT_DIRECTORY_HOOK from _pytest.compat import TYPE_CHECKING if TYPE_CHECKING: @@ -262,16 +261,6 @@ def pytest_ignore_collect(path: py.path.local, config: "Config") -> Optional[boo """ -@hookspec(firstresult=True, warn_on_impl=COLLECT_DIRECTORY_HOOK) -def pytest_collect_directory(path: py.path.local, parent) -> Optional[object]: - """Called before traversing a directory for collection files. - - Stops at first non-None result, see :ref:`firstresult`. - - :param py.path.local path: The path to analyze. - """ - - def pytest_collect_file(path: py.path.local, parent) -> "Optional[Collector]": """Return collection Node or None for the given path. |