Submit
Path:
~
/
/
opt
/
cloudlinux
/
venv
/
lib64
/
python3.11
/
site-packages
/
setuptools
/
tests
/
__pycache__
/
File Content:
test_shutil_wrapper.cpython-311.opt-1.pyc
� � h� � �4 � d dl Z d dlZd dlmZ d dlmZ d� ZdS )� N)�Mock)�_shutilc � � |dz }|� � � |� d� � }|� � � |� t j � � t j � d� � rdnd}t t j �� � }| � t d|� � t j |� � dS ) zVerify onerr works as expected� with_readonlyzfile.txt�win� r )�wraps�attempt_chmod_verboseN)�mkdir�joinpath�touch�chmod�stat�S_IREAD�sys�platform� startswithr r r �setattr�rmtree)�monkeypatch�tmp_path�tmp_dir� some_file�expected_count�chmod_fns �Y/opt/cloudlinux/venv/lib/python3.11/site-packages/setuptools/tests/test_shutil_wrapper.py�test_rmtree_readonlyr s� � � ��(�G��M�M�O�O�O�� � ��,�,�I� �O�O���� �O�O�D�L�!�!�!��,�1�1�%�8�8�?�Q�Q�a�N��'�7�8�8�8�H�����!8�(�C�C�C��N�7������ )r r � unittest.mockr � setuptoolsr r � r r �<module>r"