mirror of https://github.com/astral-sh/ruff
Fix test
This commit is contained in:
parent
739c3aa4fa
commit
73343a9913
|
|
@ -1,6 +1,9 @@
|
|||
try:
|
||||
pass
|
||||
except ValueError:
|
||||
pass
|
||||
except:
|
||||
pass
|
||||
|
||||
try:
|
||||
pass
|
||||
except Exception:
|
||||
pass
|
||||
|
|
|
|||
|
|
@ -254,7 +254,7 @@ mod tests {
|
|||
actual.sort_by_key(|check| check.location);
|
||||
let expected = vec![Check {
|
||||
kind: CheckKind::DoNotUseBareExcept,
|
||||
location: Location::new(5, 1),
|
||||
location: Location::new(3, 1),
|
||||
fix: None,
|
||||
}];
|
||||
assert_eq!(actual.len(), expected.len());
|
||||
|
|
|
|||
Loading…
Reference in New Issue