mirror of
https://github.com/python/cpython.git
synced 2025-08-04 17:08:35 +00:00
bpo-32096: Ensure new embedding test can find the encodings module (GH-4566)
This commit is contained in:
parent
53efbf3977
commit
4274609e18
1 changed files with 2 additions and 1 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue