Skip to content

Commit

Permalink
Enforce ruff/bugbear rule B011
Browse files Browse the repository at this point in the history
B011 Do not `assert False` (`python -O` removes these calls),
     raise `AssertionError()`
  • Loading branch information
DimitriPapadopoulos committed May 24, 2024
1 parent bfd6e42 commit 7108c9f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion fsspec/tests/test_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -381,7 +381,7 @@ def client(self):
return mock

def func_2(self):
assert False, "have to overwrite this"
raise AssertionError("have to overwrite this")

def func_3(self):
return "should succeed"
Expand Down

0 comments on commit 7108c9f

Please sign in to comment.