PATH: //opt/cloudlinux/venv/lib/python3.11/site-packages/setuptools/tests
FILE_BARU
CREATE
FOLDER_BARU
MKDIR
UPLOAD_FILE
GO
[ .. KEMBALI ]
📄 __init__.py
↓
X
📁 __pycache__/
X
📁 compat/
X
📁 config/
X
📄 contexts.py
↓
X
📄 environment.py
↓
X
📄 fixtures.py
↓
X
📁 indexes/
X
📁 integration/
X
📄 mod_with_constant.py
↓
X
📄 namespaces.py
↓
X
📄 script-with-bom.py
↓
X
📄 server.py
↓
X
📄 test_archive_util.py
↓
X
📄 test_bdist_deprecations.py
↓
X
📄 test_bdist_egg.py
↓
X
📄 test_bdist_wheel.py
↓
X
📄 test_build.py
↓
X
📄 test_build_clib.py
↓
X
📄 test_build_ext.py
↓
X
📄 test_build_meta.py
↓
X
📄 test_build_py.py
↓
X
📄 test_config_discovery.py
↓
X
📄 test_core_metadata.py
↓
X
📄 test_depends.py
↓
X
📄 test_develop.py
↓
X
📄 test_dist.py
↓
X
📄 test_dist_info.py
↓
X
📄 test_distutils_adoption.py
↓
X
📄 test_easy_install.py
↓
X
📄 test_editable_install.py
↓
X
📄 test_egg_info.py
↓
X
📄 test_extern.py
↓
X
📄 test_find_packages.py
↓
X
📄 test_find_py_modules.py
↓
X
📄 test_glob.py
↓
X
📄 test_install_scripts.py
↓
X
📄 test_logging.py
↓
X
📄 test_manifest.py
↓
X
📄 test_namespaces.py
↓
X
📄 test_packageindex.py
↓
X
📄 test_sandbox.py
↓
X
📄 test_sdist.py
↓
X
📄 test_setopt.py
↓
X
📄 test_setuptools.py
↓
X
📄 test_shutil_wrapper.py
↓
X
📄 test_unicode_utils.py
↓
X
📄 test_virtualenv.py
↓
X
📄 test_warnings.py
↓
X
📄 test_wheel.py
↓
X
📄 test_windows_wrappers.py
↓
X
📄 text.py
↓
X
📄 textwrap.py
↓
X
SAVING...
BERHASIL DIUBAH!
EDITING: test_shutil_wrapper.py
import stat import sys from unittest.mock import Mock from setuptools import _shutil def test_rmtree_readonly(monkeypatch, tmp_path): """Verify onerr works as expected""" tmp_dir = tmp_path / "with_readonly" tmp_dir.mkdir() some_file = tmp_dir.joinpath("file.txt") some_file.touch() some_file.chmod(stat.S_IREAD) expected_count = 1 if sys.platform.startswith("win") else 0 chmod_fn = Mock(wraps=_shutil.attempt_chmod_verbose) monkeypatch.setattr(_shutil, "attempt_chmod_verbose", chmod_fn) _shutil.rmtree(tmp_dir) assert chmod_fn.call_count == expected_count assert not tmp_dir.is_dir()
SIMPAN PERUBAHAN