Skip to content

Commit 8d841ab

Browse files
committed
nodes: remove unused argument from FSHookProxy
1 parent 919ac22 commit 8d841ab

File tree

1 file changed

+2
-5
lines changed

1 file changed

+2
-5
lines changed

src/_pytest/nodes.py

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -456,10 +456,7 @@ def _check_initialpaths_for_relpath(session, fspath):
456456

457457

458458
class FSHookProxy:
459-
def __init__(
460-
self, fspath: py.path.local, pm: PytestPluginManager, remove_mods
461-
) -> None:
462-
self.fspath = fspath
459+
def __init__(self, pm: PytestPluginManager, remove_mods) -> None:
463460
self.pm = pm
464461
self.remove_mods = remove_mods
465462

@@ -510,7 +507,7 @@ def _gethookproxy(self, fspath: py.path.local):
510507
remove_mods = pm._conftest_plugins.difference(my_conftestmodules)
511508
if remove_mods:
512509
# one or more conftests are not in use at this fspath
513-
proxy = FSHookProxy(fspath, pm, remove_mods)
510+
proxy = FSHookProxy(pm, remove_mods)
514511
else:
515512
# all plugins are active for this fspath
516513
proxy = self.config.hook

0 commit comments

Comments
 (0)