@@ -545,7 +545,7 @@ mod tests {
545
545
system_install_sys_prefix. join ( & unix_site_packages) ;
546
546
( system_home_path, system_exe_path, system_site_packages_path)
547
547
} ;
548
- memory_fs. write_file ( system_exe_path, "" ) . unwrap ( ) ;
548
+ memory_fs. write_file_all ( system_exe_path, "" ) . unwrap ( ) ;
549
549
memory_fs
550
550
. create_directory_all ( & system_site_packages_path)
551
551
. unwrap ( ) ;
@@ -562,7 +562,7 @@ mod tests {
562
562
venv_sys_prefix. join ( & unix_site_packages) ,
563
563
)
564
564
} ;
565
- memory_fs. write_file ( & venv_exe, "" ) . unwrap ( ) ;
565
+ memory_fs. write_file_all ( & venv_exe, "" ) . unwrap ( ) ;
566
566
memory_fs. create_directory_all ( & site_packages_path) . unwrap ( ) ;
567
567
568
568
let pyvenv_cfg_path = venv_sys_prefix. join ( "pyvenv.cfg" ) ;
@@ -576,7 +576,7 @@ mod tests {
576
576
pyvenv_cfg_contents. push_str ( "include-system-site-packages = TRuE\n " ) ;
577
577
}
578
578
memory_fs
579
- . write_file ( pyvenv_cfg_path, & pyvenv_cfg_contents)
579
+ . write_file_all ( pyvenv_cfg_path, & pyvenv_cfg_contents)
580
580
. unwrap ( ) ;
581
581
582
582
venv_sys_prefix
@@ -740,7 +740,7 @@ mod tests {
740
740
let system = TestSystem :: default ( ) ;
741
741
system
742
742
. memory_file_system ( )
743
- . write_file ( "/.venv" , "" )
743
+ . write_file_all ( "/.venv" , "" )
744
744
. unwrap ( ) ;
745
745
assert ! ( matches!(
746
746
VirtualEnvironment :: new( "/.venv" , & system) ,
@@ -767,7 +767,7 @@ mod tests {
767
767
let memory_fs = system. memory_file_system ( ) ;
768
768
let pyvenv_cfg_path = SystemPathBuf :: from ( "/.venv/pyvenv.cfg" ) ;
769
769
memory_fs
770
- . write_file ( & pyvenv_cfg_path, "home = bar = /.venv/bin" )
770
+ . write_file_all ( & pyvenv_cfg_path, "home = bar = /.venv/bin" )
771
771
. unwrap ( ) ;
772
772
let venv_result = VirtualEnvironment :: new ( "/.venv" , & system) ;
773
773
assert ! ( matches!(
@@ -785,7 +785,9 @@ mod tests {
785
785
let system = TestSystem :: default ( ) ;
786
786
let memory_fs = system. memory_file_system ( ) ;
787
787
let pyvenv_cfg_path = SystemPathBuf :: from ( "/.venv/pyvenv.cfg" ) ;
788
- memory_fs. write_file ( & pyvenv_cfg_path, "home =" ) . unwrap ( ) ;
788
+ memory_fs
789
+ . write_file_all ( & pyvenv_cfg_path, "home =" )
790
+ . unwrap ( ) ;
789
791
let venv_result = VirtualEnvironment :: new ( "/.venv" , & system) ;
790
792
assert ! ( matches!(
791
793
venv_result,
@@ -803,7 +805,7 @@ mod tests {
803
805
let memory_fs = system. memory_file_system ( ) ;
804
806
let pyvenv_cfg_path = SystemPathBuf :: from ( "/.venv/pyvenv.cfg" ) ;
805
807
memory_fs
806
- . write_file ( & pyvenv_cfg_path, "= whatever" )
808
+ . write_file_all ( & pyvenv_cfg_path, "= whatever" )
807
809
. unwrap ( ) ;
808
810
let venv_result = VirtualEnvironment :: new ( "/.venv" , & system) ;
809
811
assert ! ( matches!(
@@ -821,7 +823,7 @@ mod tests {
821
823
let system = TestSystem :: default ( ) ;
822
824
let memory_fs = system. memory_file_system ( ) ;
823
825
let pyvenv_cfg_path = SystemPathBuf :: from ( "/.venv/pyvenv.cfg" ) ;
824
- memory_fs. write_file ( & pyvenv_cfg_path, "" ) . unwrap ( ) ;
826
+ memory_fs. write_file_all ( & pyvenv_cfg_path, "" ) . unwrap ( ) ;
825
827
let venv_result = VirtualEnvironment :: new ( "/.venv" , & system) ;
826
828
assert ! ( matches!(
827
829
venv_result,
@@ -839,7 +841,7 @@ mod tests {
839
841
let memory_fs = system. memory_file_system ( ) ;
840
842
let pyvenv_cfg_path = SystemPathBuf :: from ( "/.venv/pyvenv.cfg" ) ;
841
843
memory_fs
842
- . write_file ( & pyvenv_cfg_path, "home = foo" )
844
+ . write_file_all ( & pyvenv_cfg_path, "home = foo" )
843
845
. unwrap ( ) ;
844
846
let venv_result = VirtualEnvironment :: new ( "/.venv" , & system) ;
845
847
assert ! ( matches!(
0 commit comments