@@ -1506,44 +1506,6 @@ static int test_audit_run_stdin(void)
1506
1506
return run_audit_run_test (Py_ARRAY_LENGTH (argv ), argv , & test );
1507
1507
}
1508
1508
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
-
1547
1509
1548
1510
static int test_init_sys_add (void )
1549
1511
{
@@ -2398,7 +2360,6 @@ static struct TestCase TestCases[] = {
2398
2360
{"test_preinit_isolated2" , test_preinit_isolated2 },
2399
2361
{"test_preinit_parse_argv" , test_preinit_parse_argv },
2400
2362
{"test_preinit_dont_parse_argv" , test_preinit_dont_parse_argv },
2401
- {"test_init_read_set" , test_init_read_set },
2402
2363
{"test_init_run_main" , test_init_run_main },
2403
2364
{"test_init_sys_add" , test_init_sys_add },
2404
2365
{"test_init_setpath" , test_init_setpath },
0 commit comments