@@ -279,7 +279,7 @@ static int test_pre_initialization_sys_options(void)
279279 * relying on the caller to keep the passed in strings alive.
280280 */
281281 const wchar_t * static_warnoption = L"once" ;
282- const wchar_t * static_xoption = L"utf8=1 " ;
282+ const wchar_t * static_xoption = L"also_not_an_option=2 " ;
283283 size_t warnoption_len = wcslen (static_warnoption );
284284 size_t xoption_len = wcslen (static_xoption );
285285 wchar_t * dynamic_once_warnoption = \
@@ -298,7 +298,7 @@ static int test_pre_initialization_sys_options(void)
298298 PySys_AddWarnOption (L"module" );
299299 PySys_AddWarnOption (L"default" );
300300 _Py_EMBED_PREINIT_CHECK ("Checking PySys_AddXOption\n" );
301- PySys_AddXOption (L"dev=2 " );
301+ PySys_AddXOption (L"not_an_option=1 " );
302302 PySys_AddXOption (dynamic_xoption );
303303
304304 /* Delete the dynamic options early */
@@ -591,17 +591,18 @@ static int test_init_from_config(void)
591591 L"-W" ,
592592 L"cmdline_warnoption" ,
593593 L"-X" ,
594- L"dev " ,
594+ L"cmdline_xoption " ,
595595 L"-c" ,
596596 L"pass" ,
597597 L"arg2" ,
598598 };
599599 config_set_argv (& config , Py_ARRAY_LENGTH (argv ), argv );
600600 config .parse_argv = 1 ;
601601
602- wchar_t * xoptions [2 ] = {
603- L"dev=3" ,
604- L"utf8" ,
602+ wchar_t * xoptions [3 ] = {
603+ L"config_xoption1=3" ,
604+ L"config_xoption2=" ,
605+ L"config_xoption3" ,
605606 };
606607 config_set_wide_string_list (& config , & config .xoptions ,
607608 Py_ARRAY_LENGTH (xoptions ), xoptions );
@@ -1425,6 +1426,7 @@ static int test_init_read_set(void)
14251426
14261427static int test_init_sys_add (void )
14271428{
1429+ PySys_AddXOption (L"sysadd_xoption" );
14281430 PySys_AddXOption (L"faulthandler" );
14291431 PySys_AddWarnOption (L"ignore:::sysadd_warnoption" );
14301432
@@ -1436,14 +1438,14 @@ static int test_init_sys_add(void)
14361438 L"-W" ,
14371439 L"ignore:::cmdline_warnoption" ,
14381440 L"-X" ,
1439- L"utf8 " ,
1441+ L"cmdline_xoption " ,
14401442 };
14411443 config_set_argv (& config , Py_ARRAY_LENGTH (argv ), argv );
14421444 config .parse_argv = 1 ;
14431445
14441446 PyStatus status ;
14451447 status = PyWideStringList_Append (& config .xoptions ,
1446- L"dev " );
1448+ L"config_xoption " );
14471449 if (PyStatus_Exception (status )) {
14481450 goto fail ;
14491451 }
0 commit comments