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