Skip to content

Commit

Permalink
Update microtest
Browse files Browse the repository at this point in the history
  • Loading branch information
rogisolorzano committed Apr 11, 2023
1 parent b3567b3 commit 4524792
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions microtest.py
Original file line number Diff line number Diff line change
Expand Up @@ -50,8 +50,8 @@ async def to_throw(self, exception = Exception):

try:
await self.value()
except exception:
threw_expected = True
except Exception as caught_exception:
threw_expected = exception.__name__ == type(caught_exception).__name__
pass

if self._fails(not threw_expected):
Expand Down

0 comments on commit 4524792

Please sign in to comment.