@@ -1506,44 +1506,6 @@ static int test_audit_run_stdin(void)
15061506 return run_audit_run_test (Py_ARRAY_LENGTH (argv ), argv , & test );
15071507}
15081508
1509- static int test_init_read_set (void )
1510- {
1511- PyStatus status ;
1512- PyConfig config ;
1513- PyConfig_InitPythonConfig (& config );
1514-
1515- config_set_string (& config , & config .program_name , L"./init_read_set" );
1516-
1517- status = PyConfig_Read (& config );
1518- if (PyStatus_Exception (status )) {
1519- goto fail ;
1520- }
1521-
1522- status = PyWideStringList_Insert (& config .module_search_paths ,
1523- 1 , L"test_path_insert1" );
1524- if (PyStatus_Exception (status )) {
1525- goto fail ;
1526- }
1527-
1528- status = PyWideStringList_Append (& config .module_search_paths ,
1529- L"test_path_append" );
1530- if (PyStatus_Exception (status )) {
1531- goto fail ;
1532- }
1533-
1534- /* override executable computed by PyConfig_Read() */
1535- config_set_string (& config , & config .executable , L"my_executable" );
1536- init_from_config_clear (& config );
1537-
1538- dump_config ();
1539- Py_Finalize ();
1540- return 0 ;
1541-
1542- fail :
1543- PyConfig_Clear (& config );
1544- Py_ExitStatusException (status );
1545- }
1546-
15471509
15481510static int test_init_sys_add (void )
15491511{
@@ -2398,7 +2360,6 @@ static struct TestCase TestCases[] = {
23982360 {"test_preinit_isolated2" , test_preinit_isolated2 },
23992361 {"test_preinit_parse_argv" , test_preinit_parse_argv },
24002362 {"test_preinit_dont_parse_argv" , test_preinit_dont_parse_argv },
2401- {"test_init_read_set" , test_init_read_set },
24022363 {"test_init_run_main" , test_init_run_main },
24032364 {"test_init_sys_add" , test_init_sys_add },
24042365 {"test_init_setpath" , test_init_setpath },
0 commit comments