mirror of https://github.com/astral-sh/ruff
Remove usage of `std::path::absolute` from snapshot test (#11973)
This commit is contained in:
parent
611f4e5c5f
commit
ad4a88657b
|
|
@ -22,7 +22,7 @@ struct NotebookChange {
|
||||||
#[test]
|
#[test]
|
||||||
fn super_resolution_overview() {
|
fn super_resolution_overview() {
|
||||||
let file_path =
|
let file_path =
|
||||||
std::path::absolute(PathBuf::from_str(SUPER_RESOLUTION_OVERVIEW_PATH).unwrap()).unwrap();
|
std::fs::canonicalize(PathBuf::from_str(SUPER_RESOLUTION_OVERVIEW_PATH).unwrap()).unwrap();
|
||||||
let file_url = lsp_types::Url::from_file_path(&file_path).unwrap();
|
let file_url = lsp_types::Url::from_file_path(&file_path).unwrap();
|
||||||
let notebook = create_notebook(&file_path).unwrap();
|
let notebook = create_notebook(&file_path).unwrap();
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue