Skip to content

Commit

Permalink
test: Remove vanilla raise
Browse files Browse the repository at this point in the history
  • Loading branch information
jpmckinney committed Sep 15, 2024
1 parent b467750 commit 982b764
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion tests/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ def sleeper(state, channel, method, properties, body):


def raiser(state, channel, method, properties, body):
raise Exception("message")
raise RuntimeError("message")


def ack_warner(state, channel, method, properties, body):
Expand Down
2 changes: 1 addition & 1 deletion tests/fixtures/raiser.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@


def callback(state, channel, method, properties, body):
raise Exception("message")
raise RuntimeError("message")


def main():
Expand Down
4 changes: 2 additions & 2 deletions tests/test_decorators.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@


def raises(*args):
raise Exception("message")
raise RuntimeError("message")


def passes(*args):
Expand All @@ -27,7 +27,7 @@ def closes(*args):
global opened # noqa: PLW0603
opened = True
try:
raise Exception("message")
raise RuntimeError("message")
finally:
opened = False

Expand Down

0 comments on commit 982b764

Please sign in to comment.