@@ -303,14 +303,7 @@ impl TestCx<'_> {
303303 & [ "-quiet" . as_ref ( ) , "-batch" . as_ref ( ) , "-nx" . as_ref ( ) , & debugger_script] ;
304304
305305 let mut gdb = Command :: new ( self . config . gdb . as_ref ( ) . unwrap ( ) ) ;
306-
307- // FIXME: we are propagating `PYTHONPATH` from the environment, not a compiletest flag!
308- let pythonpath = if let Ok ( pp) = std:: env:: var ( "PYTHONPATH" ) {
309- format ! ( "{pp}:{rust_pp_module_abs_path}" )
310- } else {
311- rust_pp_module_abs_path. to_string ( )
312- } ;
313- gdb. args ( debugger_opts) . env ( "PYTHONPATH" , pythonpath) ;
306+ gdb. args ( debugger_opts) ;
314307
315308 debugger_run_result =
316309 self . compose_and_run ( gdb, self . config . run_lib_path . as_path ( ) , None , None ) ;
@@ -449,19 +442,12 @@ impl TestCx<'_> {
449442 // Prepare the lldb_batchmode which executes the debugger script
450443 let lldb_script_path = self . config . src_root . join ( "src/etc/lldb_batchmode.py" ) ;
451444
452- // FIXME: `PYTHONPATH` takes precedence over the flag...?
453- let pythonpath = if let Ok ( pp) = std:: env:: var ( "PYTHONPATH" ) {
454- format ! ( "{pp}:{}" , self . config. lldb_python_dir. as_ref( ) . unwrap( ) )
455- } else {
456- self . config . lldb_python_dir . clone ( ) . unwrap ( )
457- } ;
458445 self . run_command_to_procres (
459446 Command :: new ( & self . config . python )
460447 . arg ( & lldb_script_path)
461448 . arg ( test_executable)
462449 . arg ( debugger_script)
463- . env ( "PYTHONUNBUFFERED" , "1" ) // Help debugging #78665
464- . env ( "PYTHONPATH" , pythonpath) ,
450+ . env ( "PYTHONUNBUFFERED" , "1" ) , // Help debugging #78665
465451 )
466452 }
467453}
0 commit comments