ZQ d dl Z d dlZd dlmZ d dlmZ ddlmZ ddlmZ ddl m Z d dlmZ d d dddd Z G d d ZdS ) 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_collectionfinishc 2 e Zd ZdZd Zd Zej fdZdS )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 || _ d S N) _PathAwareHookProxy__hook_caller)selfhook_callers g/builddir/build/BUILD/cloudlinux-venv-1.0.10/venv/lib/python3.11/site-packages/_pytest/config/compat.py__init__zPathAwareHookProxy.__init__ s ( c * t | j S r )dirr )r s r __dir__zPathAwareHookProxy.__dir__! s 4%&&&r c t | j | |t vr| j |<