Skip to content

Commit 6c9b277

Browse files
authored
Merge pull request #11070 from bluetech/pkg-redundant-methods
python: remove redundant methods from Package
2 parents 24534cd + 3de43e5 commit 6c9b277

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)