bpo-32096: Ensure new embedding test can find the encodings module (G… · python/cpython@4274609 (original) (raw)

Skip to content

Provide feedback

Saved searches

Use saved searches to filter your results more quickly

Sign up

Appearance settings

Commit 4274609

File tree

1 file changed

lines changed

1 file changed

lines changed

Original file line number Diff line number Diff line change
@@ -132,7 +132,8 @@ static int test_forced_io_encoding(void)
132 132
133 133 static int test_pre_initialization_api(void)
134 134 {
135 -wchar_t *program = Py_DecodeLocale("spam", NULL);
135 +/* Leading "./" ensures getpath.c can still find the standard library */
136 +wchar_t *program = Py_DecodeLocale("./spam", NULL);
136 137 if (program == NULL) {
137 138 fprintf(stderr, "Fatal error: cannot decode program name\n");
138 139 return 1;