From e33389cb9253011461cb222e720fea3810cc598f Mon Sep 17 00:00:00 2001 From: Zanie Date: Mon, 16 Oct 2023 12:40:49 -0500 Subject: [PATCH] Use the full file path for platform agnostic snapshot --- crates/ruff_cli/tests/format.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/crates/ruff_cli/tests/format.rs b/crates/ruff_cli/tests/format.rs index 1224784419c9e4..f945a85800fccf 100644 --- a/crates/ruff_cli/tests/format.rs +++ b/crates/ruff_cli/tests/format.rs @@ -157,7 +157,7 @@ format = "json" )?; insta::with_settings!({filters => vec![ - (&*regex::escape(tempdir.path().to_str().unwrap()), "[TMPDIR]"), + (&*regex::escape(ruff_toml.to_str().unwrap()), "[RUFF-TOML-PATH]"), ]}, { assert_cmd_snapshot!(Command::new(get_cargo_bin(BIN_NAME)) .args(["check", "--select", "F401", "--no-cache", "--config"])