REDROOM
PHP 8.2.30
Path:
Logout
Edit File
Size: 1.61 KB
Close
//opt/cloudlinux/venv/lib/python3.11/site-packages/pkg_resources/tests/test_integration_zope_interface.py
Text
Base64
import platform from inspect import cleandoc import jaraco.path import pytest pytestmark = pytest.mark.integration # For the sake of simplicity this test uses fixtures defined in # `setuptools.test.fixtures`, # and it also exercise conditions considered deprecated... # So if needed this test can be deleted. @pytest.mark.skipif( platform.system() != "Linux", reason="only demonstrated to fail on Linux in #4399", ) def test_interop_pkg_resources_iter_entry_points(tmp_path, venv): """ Importing pkg_resources.iter_entry_points on console_scripts seems to cause trouble with zope-interface, when deprecates installation method is used. See #4399. """ project = { "pkg": { "foo.py": cleandoc( """ from pkg_resources import iter_entry_points def bar(): print("Print me if you can") """ ), "setup.py": cleandoc( """ from setuptools import setup, find_packages setup( install_requires=["zope-interface==6.4.post2"], entry_points={ "console_scripts": [ "foo=foo:bar", ], }, ) """ ), } } jaraco.path.build(project, prefix=tmp_path) cmd = ["pip", "install", "-e", ".", "--no-use-pep517"] venv.run(cmd, cwd=tmp_path / "pkg") # Needs this version of pkg_resources installed out = venv.run(["foo"]) assert "Print me if you can" in out
Save
Close
Exit & Reset
Text mode: syntax highlighting auto-detects file type.
Directory Contents
Dirs: 2 × Files: 7
Delete Selected
Select All
Select None
Sort:
Name
Size
Modified
Enable drag-to-move
Name
Size
Perms
Modified
Actions
data
DIR
-
drwxr-xr-x
2026-01-20 13:01:47
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
__pycache__
DIR
-
drwxr-xr-x
2026-02-06 08:01:08
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
test_find_distributions.py
1.93 KB
lrw-r--r--
2026-01-20 13:01:47
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
test_integration_zope_interface.py
1.61 KB
lrw-r--r--
2026-01-20 13:01:47
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
test_markers.py
241 B
lrw-r--r--
2026-01-20 13:01:47
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
test_pkg_resources.py
16.71 KB
lrw-r--r--
2026-01-20 13:01:47
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
test_resources.py
30.52 KB
lrw-r--r--
2026-01-20 13:01:47
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
test_working_set.py
8.40 KB
lrw-r--r--
2026-01-20 13:01:47
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
__init__.py
0 B
lrw-r--r--
2026-01-20 13:01:47
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
Zip Selected
If ZipArchive is unavailable, a
.tar
will be created (no compression).