mirror of
https://github.com/python/cpython.git
synced 2025-11-08 01:21:42 +00:00
GH-126985: move pyvenv.cfg detection from site to getpath (#126987)
This commit is contained in:
parent
ab237ff81d
commit
2b0e2b2893
12 changed files with 176 additions and 155 deletions
|
|
@ -92,8 +92,8 @@ def test_venv_win32(self):
|
|||
])
|
||||
expected = dict(
|
||||
executable=r"C:\venv\Scripts\python.exe",
|
||||
prefix=r"C:\Python",
|
||||
exec_prefix=r"C:\Python",
|
||||
prefix=r"C:\venv",
|
||||
exec_prefix=r"C:\venv",
|
||||
base_executable=r"C:\Python\python.exe",
|
||||
base_prefix=r"C:\Python",
|
||||
base_exec_prefix=r"C:\Python",
|
||||
|
|
@ -339,8 +339,8 @@ def test_venv_posix(self):
|
|||
])
|
||||
expected = dict(
|
||||
executable="/venv/bin/python",
|
||||
prefix="/usr",
|
||||
exec_prefix="/usr",
|
||||
prefix="/venv",
|
||||
exec_prefix="/venv",
|
||||
base_executable="/usr/bin/python",
|
||||
base_prefix="/usr",
|
||||
base_exec_prefix="/usr",
|
||||
|
|
@ -371,8 +371,8 @@ def test_venv_changed_name_posix(self):
|
|||
])
|
||||
expected = dict(
|
||||
executable="/venv/bin/python",
|
||||
prefix="/usr",
|
||||
exec_prefix="/usr",
|
||||
prefix="/venv",
|
||||
exec_prefix="/venv",
|
||||
base_executable="/usr/bin/python3",
|
||||
base_prefix="/usr",
|
||||
base_exec_prefix="/usr",
|
||||
|
|
@ -404,8 +404,8 @@ def test_venv_non_installed_zip_path_posix(self):
|
|||
])
|
||||
expected = dict(
|
||||
executable="/venv/bin/python",
|
||||
prefix="/path/to/non-installed",
|
||||
exec_prefix="/path/to/non-installed",
|
||||
prefix="/venv",
|
||||
exec_prefix="/venv",
|
||||
base_executable="/path/to/non-installed/bin/python",
|
||||
base_prefix="/path/to/non-installed",
|
||||
base_exec_prefix="/path/to/non-installed",
|
||||
|
|
@ -435,8 +435,8 @@ def test_venv_changed_name_copy_posix(self):
|
|||
])
|
||||
expected = dict(
|
||||
executable="/venv/bin/python",
|
||||
prefix="/usr",
|
||||
exec_prefix="/usr",
|
||||
prefix="/venv",
|
||||
exec_prefix="/venv",
|
||||
base_executable="/usr/bin/python9",
|
||||
base_prefix="/usr",
|
||||
base_exec_prefix="/usr",
|
||||
|
|
@ -652,8 +652,8 @@ def test_venv_framework_macos(self):
|
|||
])
|
||||
expected = dict(
|
||||
executable=f"{venv_path}/bin/python",
|
||||
prefix="/Library/Frameworks/Python.framework/Versions/9.8",
|
||||
exec_prefix="/Library/Frameworks/Python.framework/Versions/9.8",
|
||||
prefix=venv_path,
|
||||
exec_prefix=venv_path,
|
||||
base_executable="/Library/Frameworks/Python.framework/Versions/9.8/bin/python9.8",
|
||||
base_prefix="/Library/Frameworks/Python.framework/Versions/9.8",
|
||||
base_exec_prefix="/Library/Frameworks/Python.framework/Versions/9.8",
|
||||
|
|
@ -697,8 +697,8 @@ def test_venv_alt_framework_macos(self):
|
|||
])
|
||||
expected = dict(
|
||||
executable=f"{venv_path}/bin/python",
|
||||
prefix="/Library/Frameworks/DebugPython.framework/Versions/9.8",
|
||||
exec_prefix="/Library/Frameworks/DebugPython.framework/Versions/9.8",
|
||||
prefix=venv_path,
|
||||
exec_prefix=venv_path,
|
||||
base_executable="/Library/Frameworks/DebugPython.framework/Versions/9.8/bin/python9.8",
|
||||
base_prefix="/Library/Frameworks/DebugPython.framework/Versions/9.8",
|
||||
base_exec_prefix="/Library/Frameworks/DebugPython.framework/Versions/9.8",
|
||||
|
|
@ -734,8 +734,8 @@ def test_venv_macos(self):
|
|||
])
|
||||
expected = dict(
|
||||
executable="/framework/Python9.8/python",
|
||||
prefix="/usr",
|
||||
exec_prefix="/usr",
|
||||
prefix="/framework/Python9.8",
|
||||
exec_prefix="/framework/Python9.8",
|
||||
base_executable="/usr/bin/python",
|
||||
base_prefix="/usr",
|
||||
base_exec_prefix="/usr",
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue