/opt/cloudlinux/venv/lib/python3.11/site-packages/_pytest
NameSizeModeActions
assertion/-0755rm
config/-0755rm
mark/-0755rm
_code/-0755rm
_io/-0755rm
_py/-0755rm
__pycache__/-0755rm
cacheprovider.py213920644editdlrm
capture.py347370644editdlrm
compat.py132000644editdlrm
debugging.py134980644editdlrm
deprecated.py54870644editdlrm
doctest.py259610644editdlrm
faulthandler.py31140644editdlrm
fixtures.py670850644editdlrm
freeze_support.py13390644editdlrm
helpconfig.py85380644editdlrm
hookspec.py325580644editdlrm
junitxml.py257160644editdlrm
legacypath.py169290644editdlrm
logging.py340310644editdlrm
main.py324910644editdlrm
monkeypatch.py148570644editdlrm
nodes.py265590644editdlrm
nose.py16880644editdlrm
outcomes.py102560644editdlrm
pastebin.py39490644editdlrm
pathlib.py258240644editdlrm
py.typed00644editdlrm
pytester.py619710644editdlrm
pytester_assertions.py23270644editdlrm
python.py711550644editdlrm
python_api.py384000644editdlrm
python_path.py7090644editdlrm
recwarn.py109300644editdlrm
reports.py208400644editdlrm
runner.py184470644editdlrm
scope.py28820644editdlrm
setuponly.py32610644editdlrm
setupplan.py12140644editdlrm
skipping.py102000644editdlrm
stash.py30550644editdlrm
stepwise.py47140644editdlrm
terminal.py535090644editdlrm
threadexception.py29150644editdlrm
timing.py3750644editdlrm
tmpdir.py117080644editdlrm
unittest.py148090644editdlrm
unraisableexception.py31910644editdlrm
warnings.py50700644editdlrm
warning_types.py44740644editdlrm
_argcomplete.py37940644editdlrm
_version.py1600644editdlrm
__init__.py3560644editdlrm
Edit: /opt/cloudlinux/venv/lib/python3.11/site-packages/_pytest/freeze_support.py (1339B)
"""Provides a function to report all internal modules for using freezing tools.""" import types from typing import Iterator from typing import List from typing import Union def freeze_includes() -> List[str]: """Return a list of module names used by pytest that should be included by cx_freeze.""" import _pytest result = list(_iter_all_modules(_pytest)) return result def _iter_all_modules( package: Union[str, types.ModuleType], prefix: str = "", ) -> Iterator[str]: """Iterate over the names of all modules that can be found in the given package, recursively. >>> import _pytest >>> list(_iter_all_modules(_pytest)) ['_pytest._argcomplete', '_pytest._code.code', ...] """ import os import pkgutil if isinstance(package, str): path = package else: # Type ignored because typeshed doesn't define ModuleType.__path__ # (only defined on packages). package_path = package.__path__ # type: ignore[attr-defined] path, prefix = package_path[0], package.__name__ + "." for _, name, is_package in pkgutil.iter_modules([path]): if is_package: for m in _iter_all_modules(os.path.join(path, name), prefix=name + "."): yield prefix + m else: yield prefix + name