Linux jobworks 6.8.0-136-generic #136-Ubuntu SMP PREEMPT_DYNAMIC Wed Jul 1 21:53:05 UTC 2026 x86_64
Apache/2.4.58 (Ubuntu)
Server IP : 10.0.1.5 & Your IP : 216.73.217.52
Domains :
Cant Read [ /etc/named.conf ]
User : www-data
Terminal
Auto Root
Create File
Create Folder
Localroot Suggester
Backdoor Destroyer
Readme
/
usr /
lib /
python3.12 /
test /
libregrtest /
Delete
Unzip
Name
Size
Permission
Date
Action
__pycache__
[ DIR ]
drwxr-xr-x
2026-07-07 06:41
__init__.py
0
B
-rw-r--r--
2026-06-19 12:46
cmdline.py
23.04
KB
-rw-r--r--
2026-06-19 12:46
filter.py
2.4
KB
-rw-r--r--
2026-06-19 12:46
findtests.py
3.47
KB
-rw-r--r--
2026-06-19 12:46
logger.py
2.69
KB
-rw-r--r--
2026-06-19 12:46
main.py
25.68
KB
-rw-r--r--
2026-06-19 12:46
mypy.ini
997
B
-rw-r--r--
2026-06-19 12:46
pgo.py
1.37
KB
-rw-r--r--
2026-06-19 12:46
refleak.py
7.81
KB
-rw-r--r--
2026-06-19 12:46
result.py
7.03
KB
-rw-r--r--
2026-06-19 12:46
results.py
8.91
KB
-rw-r--r--
2026-06-19 12:46
run_workers.py
21.84
KB
-rw-r--r--
2026-06-19 12:46
runtests.py
6.8
KB
-rw-r--r--
2026-06-19 12:46
save_env.py
12.74
KB
-rw-r--r--
2026-06-19 12:46
setup.py
4.89
KB
-rw-r--r--
2026-06-19 12:46
single.py
10.4
KB
-rw-r--r--
2026-06-19 12:46
testresult.py
6.09
KB
-rw-r--r--
2026-06-19 12:46
tsan.py
700
B
-rw-r--r--
2026-06-19 12:46
utils.py
21.2
KB
-rw-r--r--
2026-06-19 12:46
win_utils.py
4.56
KB
-rw-r--r--
2026-06-19 12:46
worker.py
3.09
KB
-rw-r--r--
2026-06-19 12:46
Save
Rename
import os import sys import unittest from test import support from .filter import match_test, set_match_tests from .utils import ( StrPath, TestName, TestTuple, TestList, TestFilter, abs_module_name, count, printlist) # If these test directories are encountered recurse into them and treat each # "test_*.py" file or each sub-directory as a separate test module. This can # increase parallelism. # # Beware this can't generally be done for any directory with sub-tests as the # __init__.py may do things which alter what tests are to be run. SPLITTESTDIRS: set[TestName] = { "test_asyncio", "test_concurrent_futures", "test_doctests", "test_future_stmt", "test_gdb", "test_inspect", "test_pydoc", "test_multiprocessing_fork", "test_multiprocessing_forkserver", "test_multiprocessing_spawn", } def findtestdir(path: StrPath | None = None) -> StrPath: return path or os.path.dirname(os.path.dirname(__file__)) or os.curdir def findtests(*, testdir: StrPath | None = None, exclude=(), split_test_dirs: set[TestName] = SPLITTESTDIRS, base_mod: str = "") -> TestList: """Return a list of all applicable test modules.""" testdir = findtestdir(testdir) tests = [] for name in os.listdir(testdir): mod, ext = os.path.splitext(name) if (not mod.startswith("test_")) or (mod in exclude): continue if base_mod: fullname = f"{base_mod}.{mod}" else: fullname = mod if fullname in split_test_dirs: subdir = os.path.join(testdir, mod) if not base_mod: fullname = f"test.{mod}" tests.extend(findtests(testdir=subdir, exclude=exclude, split_test_dirs=split_test_dirs, base_mod=fullname)) elif ext in (".py", ""): tests.append(fullname) return sorted(tests) def split_test_packages(tests, *, testdir: StrPath | None = None, exclude=(), split_test_dirs=SPLITTESTDIRS): testdir = findtestdir(testdir) splitted = [] for name in tests: if name in split_test_dirs: subdir = os.path.join(testdir, name) splitted.extend(findtests(testdir=subdir, exclude=exclude, split_test_dirs=split_test_dirs, base_mod=name)) else: splitted.append(name) return splitted def _list_cases(suite): for test in suite: if isinstance(test, unittest.loader._FailedTest): continue if isinstance(test, unittest.TestSuite): _list_cases(test) elif isinstance(test, unittest.TestCase): if match_test(test): print(test.id()) def list_cases(tests: TestTuple, *, match_tests: TestFilter | None = None, test_dir: StrPath | None = None): support.verbose = False set_match_tests(match_tests) skipped = [] for test_name in tests: module_name = abs_module_name(test_name, test_dir) try: suite = unittest.defaultTestLoader.loadTestsFromName(module_name) _list_cases(suite) except unittest.SkipTest: skipped.append(test_name) if skipped: sys.stdout.flush() stderr = sys.stderr print(file=stderr) print(count(len(skipped), "test"), "skipped:", file=stderr) printlist(skipped, file=stderr)