PATH: //opt/cloudlinux/venv/lib/python3.11/site-packages/_pytest
FILE_BARU
CREATE
FOLDER_BARU
MKDIR
UPLOAD_FILE
GO
[ .. KEMBALI ]
📄 __init__.py
↓
X
📁 __pycache__/
X
📄 _argcomplete.py
↓
X
📁 _code/
X
📁 _io/
X
📁 _py/
X
📄 _version.py
↓
X
📁 assertion/
X
📄 cacheprovider.py
↓
X
📄 capture.py
↓
X
📄 compat.py
↓
X
📁 config/
X
📄 debugging.py
↓
X
📄 deprecated.py
↓
X
📄 doctest.py
↓
X
📄 faulthandler.py
↓
X
📄 fixtures.py
↓
X
📄 freeze_support.py
↓
X
📄 helpconfig.py
↓
X
📄 hookspec.py
↓
X
📄 junitxml.py
↓
X
📄 legacypath.py
↓
X
📄 logging.py
↓
X
📄 main.py
↓
X
📁 mark/
X
📄 monkeypatch.py
↓
X
📄 nodes.py
↓
X
📄 nose.py
↓
X
📄 outcomes.py
↓
X
📄 pastebin.py
↓
X
📄 pathlib.py
↓
X
📄 py.typed
↓
X
📄 pytester.py
↓
X
📄 pytester_assertions.py
↓
X
📄 python.py
↓
X
📄 python_api.py
↓
X
📄 python_path.py
↓
X
📄 recwarn.py
↓
X
📄 reports.py
↓
X
📄 runner.py
↓
X
📄 scope.py
↓
X
📄 setuponly.py
↓
X
📄 setupplan.py
↓
X
📄 skipping.py
↓
X
📄 stash.py
↓
X
📄 stepwise.py
↓
X
📄 terminal.py
↓
X
📄 threadexception.py
↓
X
📄 timing.py
↓
X
📄 tmpdir.py
↓
X
📄 unittest.py
↓
X
📄 unraisableexception.py
↓
X
📄 warning_types.py
↓
X
📄 warnings.py
↓
X
SAVING...
BERHASIL DIUBAH!
EDITING: freeze_support.py
"""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
SIMPAN PERUBAHAN