@@ -211,7 +211,7 @@ static int test_pre_initialization_sys_options(void)
211211 * relying on the caller to keep the passed in strings alive.
212212 */
213213 const wchar_t * static_warnoption = L"once" ;
214- const wchar_t * static_xoption = L"also_not_an_option=2 " ;
214+ const wchar_t * static_xoption = L"utf8=1 " ;
215215 size_t warnoption_len = wcslen (static_warnoption );
216216 size_t xoption_len = wcslen (static_xoption );
217217 wchar_t * dynamic_once_warnoption = \
@@ -230,7 +230,7 @@ static int test_pre_initialization_sys_options(void)
230230 PySys_AddWarnOption (L"module" );
231231 PySys_AddWarnOption (L"default" );
232232 _Py_EMBED_PREINIT_CHECK ("Checking PySys_AddXOption\n" );
233- PySys_AddXOption (L"not_an_option=1 " );
233+ PySys_AddXOption (L"dev=2 " );
234234 PySys_AddXOption (dynamic_xoption );
235235
236236 /* Delete the dynamic options early */
@@ -548,18 +548,17 @@ static int test_init_from_config(void)
548548 L"-W" ,
549549 L"cmdline_warnoption" ,
550550 L"-X" ,
551- L"cmdline_xoption " ,
551+ L"dev " ,
552552 L"-c" ,
553553 L"pass" ,
554554 L"arg2" ,
555555 };
556556 config_set_argv (& config , Py_ARRAY_LENGTH (argv ), argv );
557557 config .parse_argv = 1 ;
558558
559- wchar_t * xoptions [3 ] = {
560- L"config_xoption1=3" ,
561- L"config_xoption2=" ,
562- L"config_xoption3" ,
559+ wchar_t * xoptions [2 ] = {
560+ L"dev=3" ,
561+ L"utf8" ,
563562 };
564563 config_set_wide_string_list (& config , & config .xoptions ,
565564 Py_ARRAY_LENGTH (xoptions ), xoptions );
@@ -1375,7 +1374,6 @@ static int test_init_read_set(void)
13751374
13761375static int test_init_sys_add (void )
13771376{
1378- PySys_AddXOption (L"sysadd_xoption" );
13791377 PySys_AddXOption (L"faulthandler" );
13801378 PySys_AddWarnOption (L"ignore:::sysadd_warnoption" );
13811379
@@ -1387,14 +1385,14 @@ static int test_init_sys_add(void)
13871385 L"-W" ,
13881386 L"ignore:::cmdline_warnoption" ,
13891387 L"-X" ,
1390- L"cmdline_xoption " ,
1388+ L"utf8 " ,
13911389 };
13921390 config_set_argv (& config , Py_ARRAY_LENGTH (argv ), argv );
13931391 config .parse_argv = 1 ;
13941392
13951393 PyStatus status ;
13961394 status = PyWideStringList_Append (& config .xoptions ,
1397- L"config_xoption " );
1395+ L"dev " );
13981396 if (PyStatus_Exception (status )) {
13991397 goto fail ;
14001398 }
0 commit comments