chore: checkpoint before Python removal

This commit is contained in:
2026-03-26 22:33:59 +00:00
parent 683cec9307
commit e568ddf82a
29972 changed files with 11269302 additions and 2 deletions

16
vendor/tempfile/tests/env.rs vendored Normal file
View File

@@ -0,0 +1,16 @@
#![deny(rust_2018_idioms)]
use std::path::Path;
#[test]
fn test_override_temp_dir() {
#[cfg(not(target_os = "wasi"))]
assert_eq!(tempfile::env::temp_dir(), std::env::temp_dir());
let new_tmp = Path::new("/tmp/override");
tempfile::env::override_temp_dir(new_tmp).unwrap();
assert_eq!(tempfile::env::temp_dir(), new_tmp);
let new_tmp2 = Path::new("/tmp/override2");
tempfile::env::override_temp_dir(new_tmp2).expect_err("override should only be possible once");
}