/
opt
/
imh-python
/
lib
/
python3.9
/
distutils
/
tests
/
/opt/imh-python/lib/python3.9/distutils/tests
mkdir
upload
Name
Size
Mode
Actions
__pycache__/
-
0755
rm
includetest.rst
25
0644
edit
dl
rm
Setup.sample
2249
0644
edit
dl
rm
support.py
6478
0644
edit
dl
rm
test_archive_util.py
14301
0644
edit
dl
rm
test_bdist.py
1893
0644
edit
dl
rm
test_bdist_dumb.py
2905
0644
edit
dl
rm
test_bdist_msi.py
803
0644
edit
dl
rm
test_bdist_rpm.py
5008
0644
edit
dl
rm
test_bdist_wininst.py
1390
0644
edit
dl
rm
test_build.py
1965
0644
edit
dl
rm
test_build_clib.py
4631
0644
edit
dl
rm
test_build_ext.py
20633
0644
edit
dl
rm
test_build_py.py
6335
0644
edit
dl
rm
test_build_scripts.py
3593
0644
edit
dl
rm
test_check.py
5711
0644
edit
dl
rm
test_clean.py
1441
0644
edit
dl
rm
test_cmd.py
3835
0644
edit
dl
rm
test_config.py
3892
0644
edit
dl
rm
test_config_cmd.py
3023
0644
edit
dl
rm
test_core.py
4077
0644
edit
dl
rm
test_cygwinccompiler.py
5636
0644
edit
dl
rm
test_dep_util.py
2820
0644
edit
dl
rm
test_dir_util.py
4654
0644
edit
dl
rm
test_dist.py
19080
0644
edit
dl
rm
test_extension.py
2768
0644
edit
dl
rm
test_filelist.py
11475
0644
edit
dl
rm
test_file_util.py
4413
0644
edit
dl
rm
test_install.py
8612
0644
edit
dl
rm
test_install_data.py
2577
0644
edit
dl
rm
test_install_headers.py
1238
0644
edit
dl
rm
test_install_lib.py
3974
0644
edit
dl
rm
test_install_scripts.py
2625
0644
edit
dl
rm
test_log.py
1864
0644
edit
dl
rm
test_msvc9compiler.py
6038
0644
edit
dl
rm
test_msvccompiler.py
2845
0644
edit
dl
rm
test_register.py
9765
0644
edit
dl
rm
test_sdist.py
17047
0644
edit
dl
rm
test_spawn.py
5460
0644
edit
dl
rm
test_sysconfig.py
11045
0644
edit
dl
rm
test_text_file.py
3436
0644
edit
dl
rm
test_unixccompiler.py
4628
0644
edit
dl
rm
test_upload.py
7137
0644
edit
dl
rm
test_util.py
11572
0644
edit
dl
rm
test_version.py
3450
0644
edit
dl
rm
test_versionpredicate.py
280
0644
edit
dl
rm
xxmodule.c
12915
0644
edit
dl
rm
__init__.py
1344
0644
edit
dl
rm
Edit:
/opt/imh-python/lib/python3.9/distutils/tests/__init__.py
(1344B)
"""Test suite for distutils. This test suite consists of a collection of test modules in the distutils.tests package. Each test module has a name starting with 'test' and contains a function test_suite(). The function is expected to return an initialized unittest.TestSuite instance. Tests for the command classes in the distutils.command package are included in distutils.tests as well, instead of using a separate distutils.command.tests package, since command identification is done by import rather than matching pre-defined names. """ import os import sys import unittest from test.support import run_unittest, save_restore_warnings_filters here = os.path.dirname(__file__) or os.curdir def test_suite(): suite = unittest.TestSuite() for fn in os.listdir(here): if fn.startswith("test") and fn.endswith(".py"): modname = "distutils.tests." + fn[:-3] # bpo-40055: Save/restore warnings filters to leave them unchanged. # Importing tests imports docutils which imports pkg_resources # which adds a warnings filter. with save_restore_warnings_filters(): __import__(modname) module = sys.modules[modname] suite.addTest(module.test_suite()) return suite if __name__ == "__main__": run_unittest(test_suite())
Save
cmd:
run