Skip to content

Commit

Permalink
bpo-32096: Ensure new embedding test can find the encodings module (p…
Browse files Browse the repository at this point in the history
  • Loading branch information
ncoghlan authored Nov 26, 2017
1 parent 53efbf3 commit 4274609
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion Programs/_testembed.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 4274609

Please sign in to comment.