Repository navigation
Closed
Description
The test_shim_unsearchable_directory_is_skipped test fails on OpenIndiana (illumos) with Permission denied:
_________________ test_shim_unsearchable_directory_is_skipped __________________
tmp_path = PosixPath('/tmp/pytest-of-marcel/pytest-0/test_shim_unsearchable_directo0')
monkeypatch = <_pytest.monkeypatch.MonkeyPatch object at 0x7fffad4ebe10>
pyenv_probed = <function pyenv_probed.<locals>._probed at 0x7fffad40cca0>
@_POSIX_PERMISSIONS
def test_shim_unsearchable_directory_is_skipped(
tmp_path: Path, monkeypatch: pytest.MonkeyPatch, pyenv_probed: Callable[[], tuple[str, ...]]
) -> None:
(tmp_path / ".python-version").write_text("2.7.18\n", encoding="utf-8")
(work := tmp_path / "locked" / "work").mkdir(parents=True)
monkeypatch.chdir(work)
work.parent.chmod(0o600)
try:
> assert pyenv_probed() == ("versions", "2.7.18")
^^^^^^^^^^^^^^
/data/builds/ul-mass-rebuild/components/python/python-discovery/build/amd64-3.14/tests/test_discovery.py:682:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
/data/builds/ul-mass-rebuild/components/python/python-discovery/build/amd64-3.14/tests/test_discovery.py:700: in _probed
get_interpreter("python2.7", [])
/data/builds/ul-mass-rebuild/components/python/python-discovery/build/prototype/i386/usr/lib/python3.14/vendor-packages/python_discovery/_discovery.py:53: in get_interpreter
if result := _find_interpreter(spec_str, preferred_paths, cache, env, predicate):
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
/data/builds/ul-mass-rebuild/components/python/python-discovery/build/prototype/i386/usr/lib/python3.14/vendor-packages/python_discovery/_discovery.py:136: in _find_interpreter
for interpreter, impl_must_match in propose_interpreters(spec, try_first_with, cache, env):
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
/data/builds/ul-mass-rebuild/components/python/python-discovery/build/prototype/i386/usr/lib/python3.14/vendor-packages/python_discovery/_discovery.py:204: in propose_interpreters
yield from _propose_from_path(spec, cache, env, tested_exes, all_implementations=all_implementations)
/data/builds/ul-mass-rebuild/components/python/python-discovery/build/prototype/i386/usr/lib/python3.14/vendor-packages/python_discovery/_discovery.py:258: in _propose_from_path
if resolved := _resolve_shim(exe_raw, env):
^^^^^^^^^^^^^^^^^^^^^^^^^^^
/data/builds/ul-mass-rebuild/components/python/python-discovery/build/prototype/i386/usr/lib/python3.14/vendor-packages/python_discovery/_discovery.py:519: in _resolve_shim
return _resolve_shim_to_binary(exe_name, versions_dir, env)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
/data/builds/ul-mass-rebuild/components/python/python-discovery/build/prototype/i386/usr/lib/python3.14/vendor-packages/python_discovery/_discovery.py:531: in _resolve_shim_to_binary
for version in _active_versions(env):
^^^^^^^^^^^^^^^^^^^^^
/data/builds/ul-mass-rebuild/components/python/python-discovery/build/prototype/i386/usr/lib/python3.14/vendor-packages/python_discovery/_discovery.py:546: in _active_versions
if versions := _read_python_version_file(Path.cwd()):
^^^^^^^^^^
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
cls = <class 'pathlib.Path'>
@classmethod
def cwd(cls):
"""Return a new path pointing to the current working directory."""
> cwd = os.getcwd()
^^^^^^^^^^^
E PermissionError: [Errno 13] Permission denied
/usr/lib/python3.14/pathlib/__init__.py:927: PermissionError
Metadata
Metadata
Assignees
Labels
No labels
Activity