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

24
vendor/tokio/tests/fs_remove_file.rs vendored Normal file
View File

@@ -0,0 +1,24 @@
#![warn(rust_2018_idioms)]
#![cfg(all(feature = "full", not(target_os = "wasi")))] // WASI does not support all fs operations
use tempfile::tempdir;
use tokio::fs;
#[tokio::test]
async fn remove_file() {
let temp_dir = tempdir().unwrap();
let file_path = temp_dir.path().join("a.txt");
fs::write(&file_path, b"Hello File!").await.unwrap();
assert!(fs::try_exists(&file_path).await.unwrap());
fs::remove_file(&file_path).await.unwrap();
// should no longer exist
match fs::try_exists(file_path).await {
Ok(exists) => assert!(!exists),
Err(_) => println!("ignored try_exists error after remove_file"),
};
}