Skip to content

Commit 428cc97

Browse files
committed
rename tests to avoid path-too-long on Windows
1 parent 44ae933 commit 428cc97

5 files changed

+1
-1
lines changed

crates/ruff_linter/src/rules/flake8_type_checking/mod.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@ mod tests {
7979
#[test_case(&[Rule::TypingOnlyFirstPartyImport], Path::new("TC001_future.py"))]
8080
#[test_case(&[Rule::TypingOnlyFirstPartyImport], Path::new("TC001_future_present.py"))]
8181
fn add_future_import(rules: &[Rule], path: &Path) -> Result<()> {
82-
let name = rules.iter().map(Rule::name).join("-");
82+
let name = rules.iter().map(Rule::noqa_code).join("-");
8383
let snapshot = format!("add_future_import__{}_{}", name, path.to_string_lossy());
8484
let diagnostics = test_path(
8585
Path::new("flake8_type_checking").join(path).as_path(),

0 commit comments

Comments
 (0)