mirror of
https://github.com/python/cpython
synced 2026-09-29 12:10:30 +03:00
bpo-34170: _PyCoreConfig_Read() defaults to argc=0 (GH-8595)
Add unit tests for argc and argv of _PyCoreConfig.
This commit is contained in:
parent
9851227382
commit
ea68d83933
3 changed files with 16 additions and 1 deletions
|
|
@ -335,7 +335,17 @@ dump_config(void)
|
|||
printf("pycache_prefix = %ls\n", config->pycache_prefix);
|
||||
printf("program_name = %ls\n", config->program_name);
|
||||
ASSERT_STR_EQUAL(config->program_name, Py_GetProgramName());
|
||||
/* FIXME: test argc/argv */
|
||||
|
||||
printf("argc = %i\n", config->argc);
|
||||
printf("argv = [");
|
||||
for (int i=0; i < config->argc; i++) {
|
||||
if (i) {
|
||||
printf(", ");
|
||||
}
|
||||
printf("\"%ls\"", config->argv[i]);
|
||||
}
|
||||
printf("]\n");
|
||||
|
||||
printf("program = %ls\n", config->program);
|
||||
/* FIXME: test xoptions */
|
||||
/* FIXME: test warnoptions */
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue