GH-133711: Enable UTF-8 mode by default (PEP 686) (#133712)
Co-authored-by: Victor Stinner <vstinner@python.org>
This commit is contained in:
@@ -1854,9 +1854,9 @@ static int test_initconfig_get_api(void)
|
||||
assert(initconfig_getint(config, "dev_mode") == 1);
|
||||
|
||||
// test PyInitConfig_GetInt() on a PyPreConfig option
|
||||
assert(initconfig_getint(config, "utf8_mode") == 0);
|
||||
assert(PyInitConfig_SetInt(config, "utf8_mode", 1) == 0);
|
||||
assert(initconfig_getint(config, "utf8_mode") == 1);
|
||||
assert(PyInitConfig_SetInt(config, "utf8_mode", 0) == 0);
|
||||
assert(initconfig_getint(config, "utf8_mode") == 0);
|
||||
|
||||
// test PyInitConfig_GetStr()
|
||||
char *str;
|
||||
|
||||
Reference in New Issue
Block a user