This commit is contained in:
harupy 2022-09-12 18:48:05 +09:00
parent 739c3aa4fa
commit 73343a9913
2 changed files with 6 additions and 3 deletions

View File

@ -1,6 +1,9 @@
try: try:
pass pass
except ValueError:
pass
except: except:
pass pass
try:
pass
except Exception:
pass

View File

@ -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());