PATH: //proc/thread-self/root/opt/alt/python311/lib64/python3.11/distutils/tests
FILE_BARU
CREATE
FOLDER_BARU
MKDIR
UPLOAD_FILE
GO
[ .. KEMBALI ]
📄 Setup.sample
↓
X
📄 __init__.py
↓
X
📁 __pycache__/
X
📄 includetest.rst
↓
X
📄 support.py
↓
X
📄 test_archive_util.py
↓
X
📄 test_bdist.py
↓
X
📄 test_bdist_dumb.py
↓
X
📄 test_bdist_rpm.py
↓
X
📄 test_build.py
↓
X
📄 test_build_clib.py
↓
X
📄 test_build_ext.py
↓
X
📄 test_build_py.py
↓
X
📄 test_build_scripts.py
↓
X
📄 test_check.py
↓
X
📄 test_clean.py
↓
X
📄 test_cmd.py
↓
X
📄 test_config.py
↓
X
📄 test_config_cmd.py
↓
X
📄 test_core.py
↓
X
📄 test_cygwinccompiler.py
↓
X
📄 test_dep_util.py
↓
X
📄 test_dir_util.py
↓
X
📄 test_dist.py
↓
X
📄 test_extension.py
↓
X
📄 test_file_util.py
↓
X
📄 test_filelist.py
↓
X
📄 test_install.py
↓
X
📄 test_install_data.py
↓
X
📄 test_install_headers.py
↓
X
📄 test_install_lib.py
↓
X
📄 test_install_scripts.py
↓
X
📄 test_log.py
↓
X
📄 test_msvc9compiler.py
↓
X
📄 test_msvccompiler.py
↓
X
📄 test_register.py
↓
X
📄 test_sdist.py
↓
X
📄 test_spawn.py
↓
X
📄 test_sysconfig.py
↓
X
📄 test_text_file.py
↓
X
📄 test_unixccompiler.py
↓
X
📄 test_upload.py
↓
X
📄 test_util.py
↓
X
📄 test_version.py
↓
X
📄 test_versionpredicate.py
↓
X
📄 xxmodule.c
↓
X
SAVING...
BERHASIL DIUBAH!
EDITING: test_clean.py
"""Tests for distutils.command.clean.""" import os import unittest from distutils.command.clean import clean from distutils.tests import support class cleanTestCase(support.TempdirManager, support.LoggingSilencer, unittest.TestCase): def test_simple_run(self): pkg_dir, dist = self.create_dist() cmd = clean(dist) # let's add some elements clean should remove dirs = [(d, os.path.join(pkg_dir, d)) for d in ('build_temp', 'build_lib', 'bdist_base', 'build_scripts', 'build_base')] for name, path in dirs: os.mkdir(path) setattr(cmd, name, path) if name == 'build_base': continue for f in ('one', 'two', 'three'): self.write_file(os.path.join(path, f)) # let's run the command cmd.all = 1 cmd.ensure_finalized() cmd.run() # make sure the files where removed for name, path in dirs: self.assertFalse(os.path.exists(path), '%s was not removed' % path) # let's run the command again (should spit warnings but succeed) cmd.all = 1 cmd.ensure_finalized() cmd.run() if __name__ == "__main__": unittest.main()
SIMPAN PERUBAHAN