idY ddlZddlZddlmZddlmZddlmZddlmZddl m Z ddl m Z d d d d d d Z GddZdS)N)Path)Optional) LEGACY_PATH) legacy_path)HOOK_LEGACY_PATH_ARG) _check_path)collection_pathpath) file_pathr ) module_pathr ) start_pathstartdir)pytest_ignore_collectpytest_collect_filepytest_pycollect_makemodulepytest_report_headerpytest_report_collectionfinishc2eZdZdZdZdZejfdZdS)PathAwareHookProxyz this helper wraps around hook callers until pluggy supports fixingcalls, this one will do it currently doesn't return full hook caller proxies for fixed hooks, this may have to be changed later depending on bugs c||_dSN) _PathAwareHookProxy__hook_caller)self hook_callers J/opt/cloudlinux/venv/lib/python3.11/site-packages/_pytest/config/compat.py__init__zPathAwareHookProxy.__init__s(c*t|jSr)dirr)rs r__dir__zPathAwareHookProxy.__dir__!s4%&&&rct|j||tvr |j|<St|\|fd}||_||j|<|S)NcH|d}|d}|*tjtjd|#|t ||n#t |}n|Jt|}||<||<di|S)N)pylib_path_argpathlib_path_argr) stacklevel)popwarningswarnrformatr rr)kw path_value fspath_value fspath_varhookpath_vars r fixed_hookz2PathAwareHookProxy.__getattr__..fixed_hook,s-/VVHd-C-C 68ffZ6N6N +M,3+5$%  )#/#J ===='2:'>'> '333!%l!3!3J)8 !-:tzzbzz!r)getattrrimply_paths_hooks__dict____name__)rkey_wrapsr2r/r0r1s @@@r __getattr__zPathAwareHookProxy.__getattr__$st)3// ' ' '!%DM# K#4S#9 Hj VD\\ " " " " " "\ ".#&J !+DM#  rN) r6 __module__ __qualname____doc__rr! functoolswrapsr9r'rrrrsW)))''''0o""""""rr)r=r)pathlibrtypingrcompatrr deprecatedr _pytest.nodesr r4rr'rrrDs ------%%%%%%90#:6&@ 1111111111r