()
| 126 | |
| 127 | #[test] |
| 128 | fn test_read_home_no_spaces() { |
| 129 | let temp_dir = std::env::temp_dir(); |
| 130 | let cfg_path = temp_dir.join("test_pyvenv2.cfg"); |
| 131 | |
| 132 | let mut file = fs::File::create(&cfg_path).unwrap(); |
| 133 | writeln!(file, "home=C:\\Python313").unwrap(); |
| 134 | |
| 135 | let home = read_home(&cfg_path).unwrap(); |
| 136 | assert_eq!(home, "C:\\Python313"); |
| 137 | |
| 138 | fs::remove_file(&cfg_path).unwrap(); |
| 139 | } |
| 140 | |
| 141 | #[test] |
| 142 | fn test_read_home_with_comments() { |