Skip to content

Commit 3de43e5

Browse files
committed
python: remove redundant methods from Package
They are already inherited exactly the same from FSCollector.
1 parent 24534cd commit 3de43e5

File tree

1 file changed

+0
-9
lines changed

1 file changed

+0
-9
lines changed

src/_pytest/python.py

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,6 @@
5757
from _pytest.config import hookimpl
5858
from _pytest.config.argparsing import Parser
5959
from _pytest.deprecated import check_ispytest
60-
from _pytest.deprecated import FSCOLLECTOR_GETHOOKPROXY_ISINITPATH
6160
from _pytest.deprecated import INSTANCE_COLLECTOR
6261
from _pytest.deprecated import NOSE_SUPPORT_METHOD
6362
from _pytest.fixtures import FuncFixtureInfo
@@ -700,14 +699,6 @@ def setup(self) -> None:
700699
func = partial(_call_with_optional_argument, teardown_module, self.obj)
701700
self.addfinalizer(func)
702701

703-
def gethookproxy(self, fspath: "os.PathLike[str]"):
704-
warnings.warn(FSCOLLECTOR_GETHOOKPROXY_ISINITPATH, stacklevel=2)
705-
return self.session.gethookproxy(fspath)
706-
707-
def isinitpath(self, path: Union[str, "os.PathLike[str]"]) -> bool:
708-
warnings.warn(FSCOLLECTOR_GETHOOKPROXY_ISINITPATH, stacklevel=2)
709-
return self.session.isinitpath(path)
710-
711702
def _recurse(self, direntry: "os.DirEntry[str]") -> bool:
712703
if direntry.name == "__pycache__":
713704
return False

0 commit comments

Comments
 (0)