summaryrefslogtreecommitdiffstats
path: root/Lib/test
diff options
context:
space:
mode:
authorSteve Dower <steve.dower@python.org>2021-12-08 19:25:58 (GMT)
committerGitHub <noreply@github.com>2021-12-08 19:25:58 (GMT)
commit7778116c2f573edf320bd55301137a968e4339d8 (patch)
treedfdc3d43400f0f1f511aa0097e4d6bccfc077833 /Lib/test
parent3cb9731b7e59b0df9a7a9ab6b7746a669958b693 (diff)
downloadcpython-7778116c2f573edf320bd55301137a968e4339d8.zip
cpython-7778116c2f573edf320bd55301137a968e4339d8.tar.gz
cpython-7778116c2f573edf320bd55301137a968e4339d8.tar.bz2
bpo-46015: Fixes calculation of sys.path in a venv on Windows (GH-29992)
Also ensures that pybuilddir.txt is written early enough in the build to be picked up by later steps.
Diffstat (limited to 'Lib/test')
-rw-r--r--Lib/test/test_embed.py2
-rw-r--r--Lib/test/test_getpath.py1
2 files changed, 3 insertions, 0 deletions
diff --git a/Lib/test/test_embed.py b/Lib/test/test_embed.py
index 94161b6..8012d80 100644
--- a/Lib/test/test_embed.py
+++ b/Lib/test/test_embed.py
@@ -1362,6 +1362,8 @@ class InitConfigTests(EmbeddingTestsMixin, unittest.TestCase):
if not MS_WINDOWS:
paths[-1] = lib_dynload
else:
+ # Include DLLs directory as well
+ paths.insert(1, '.\\DLLs')
for index, path in enumerate(paths):
if index == 0:
# Because we copy the DLLs into tmpdir as well, the zip file
diff --git a/Lib/test/test_getpath.py b/Lib/test/test_getpath.py
index 9dd167b..3fb1b28 100644
--- a/Lib/test/test_getpath.py
+++ b/Lib/test/test_getpath.py
@@ -100,6 +100,7 @@ class MockGetPathTests(unittest.TestCase):
module_search_paths_set=1,
module_search_paths=[
r"C:\Python\python98.zip",
+ r"C:\Python\DLLs",
r"C:\Python\Lib",
r"C:\Python",
],