Skip to content

Commit

Permalink
Use the full file path for platform agnostic snapshot
Browse files Browse the repository at this point in the history
  • Loading branch information
zanieb committed Oct 16, 2023
1 parent 5e73cc2 commit e33389c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion crates/ruff_cli/tests/format.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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"])
Expand Down

0 comments on commit e33389c

Please sign in to comment.