summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorNick Coghlan <ncoghlan@gmail.com>2017-11-26 04:19:13 (GMT)
committerGitHub <noreply@github.com>2017-11-26 04:19:13 (GMT)
commit4274609e1856facd80b7ee588b0791fe8963b9e0 (patch)
treeb91f9127ac314bc3e284e3222fb2eba33a259fea
parent53efbf3977a44e382397e7994a2524b4f8c9d053 (diff)
downloadcpython-4274609e1856facd80b7ee588b0791fe8963b9e0.zip
cpython-4274609e1856facd80b7ee588b0791fe8963b9e0.tar.gz
cpython-4274609e1856facd80b7ee588b0791fe8963b9e0.tar.bz2
bpo-32096: Ensure new embedding test can find the encodings module (GH-4566)
-rw-r--r--Programs/_testembed.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/Programs/_testembed.c b/Programs/_testembed.c
index 52a0b51..21aa76e 100644
--- a/Programs/_testembed.c
+++ b/Programs/_testembed.c
@@ -132,7 +132,8 @@ static int test_forced_io_encoding(void)
static int test_pre_initialization_api(void)
{
- wchar_t *program = Py_DecodeLocale("spam", NULL);
+ /* Leading "./" ensures getpath.c can still find the standard library */
+ wchar_t *program = Py_DecodeLocale("./spam", NULL);
if (program == NULL) {
fprintf(stderr, "Fatal error: cannot decode program name\n");
return 1;