bpo-32096: Ensure new embedding test can find the encodings module (GH-4566)

This commit is contained in:
Nick Coghlan 2017-11-26 14:19:13 +10:00 committed by GitHub
parent 53efbf3977
commit 4274609e18
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 1 deletions

View File

@ -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;