mirror of
https://github.com/astral-sh/uv.git
synced 2025-07-07 13:25:00 +00:00
SCRATCH COMMIT: but maybe this works better
This commit is contained in:
parent
d27cec78b4
commit
882ee5c663
1 changed files with 3 additions and 10 deletions
|
@ -13,7 +13,6 @@ use assert_cmd::assert::{Assert, OutputAssertExt};
|
|||
use assert_fs::assert::PathAssert;
|
||||
use assert_fs::fixture::{ChildPath, PathChild, PathCopy, PathCreateDir, SymlinkToFile};
|
||||
use base64::{Engine, prelude::BASE64_STANDARD as base64};
|
||||
use etcetera::BaseStrategy;
|
||||
use futures::StreamExt;
|
||||
use indoc::formatdoc;
|
||||
use itertools::Itertools;
|
||||
|
@ -417,15 +416,9 @@ impl TestContext {
|
|||
/// returns resolved symlink). This is problematic, as we _don't_ want to resolve symlinks
|
||||
/// for user-provided paths.
|
||||
pub fn test_bucket_dir() -> PathBuf {
|
||||
env::var(EnvVars::UV_INTERNAL__TEST_DIR)
|
||||
.map(PathBuf::from)
|
||||
.unwrap_or_else(|_| {
|
||||
etcetera::base_strategy::choose_base_strategy()
|
||||
.expect("Failed to find base strategy")
|
||||
.data_dir()
|
||||
.join("uv")
|
||||
.join("tests")
|
||||
})
|
||||
std::env::temp_dir()
|
||||
.canonicalize()
|
||||
.expect("failed to canonicalize temp dir")
|
||||
}
|
||||
|
||||
/// Create a new test context with multiple Python versions.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue