Add test case for assignment-expression in E741.py

This commit is contained in:
harupy 2022-09-12 20:20:17 +09:00
parent 4e0807e908
commit 2d3b4a6d88
2 changed files with 8 additions and 0 deletions

View File

@ -70,3 +70,6 @@ try:
pass
except ValueError as l:
pass
if (l := 5) > 0:
pass

View File

@ -431,6 +431,11 @@ mod tests {
location: Location::new(71, 1),
fix: None,
},
Check {
kind: CheckKind::AmbiguousVariableName("l".to_string()),
location: Location::new(74, 5),
fix: None,
},
];
assert_eq!(actual.len(), expected.len());