aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/Lib/test/test_getpath.py
diff options
context:
space:
mode:
authorFilipe Laíns 🇵🇸 <lains@riseup.net>2024-11-26 13:46:33 +0000
committerGitHub <noreply@github.com>2024-11-26 13:46:33 +0000
commit2b0e2b2893a821ca36cd65a204bed932741ac189 (patch)
treedcae7576064fcb8ec409f38d98b217f5cc815249 /Lib/test/test_getpath.py
parentab237ff81d2201c70aaacf51f0c033df334e5d07 (diff)
downloadcpython-2b0e2b2893a821ca36cd65a204bed932741ac189.tar.gz
cpython-2b0e2b2893a821ca36cd65a204bed932741ac189.zip
GH-126985: move pyvenv.cfg detection from site to getpath (#126987)
Diffstat (limited to 'Lib/test/test_getpath.py')
-rw-r--r--Lib/test/test_getpath.py32
1 files changed, 16 insertions, 16 deletions
diff --git a/Lib/test/test_getpath.py b/Lib/test/test_getpath.py
index d5dcdad9614..7e5c4a3d14d 100644
--- a/Lib/test/test_getpath.py
+++ b/Lib/test/test_getpath.py
@@ -92,8 +92,8 @@ class MockGetPathTests(unittest.TestCase):
])
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 @@ class MockGetPathTests(unittest.TestCase):
])
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 @@ class MockGetPathTests(unittest.TestCase):
])
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 @@ class MockGetPathTests(unittest.TestCase):
])
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 @@ class MockGetPathTests(unittest.TestCase):
])
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 @@ class MockGetPathTests(unittest.TestCase):
])
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 @@ class MockGetPathTests(unittest.TestCase):
])
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 @@ class MockGetPathTests(unittest.TestCase):
])
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",