mirror of
https://github.com/Grasscutters/mitmproxy.git
synced 2024-11-25 09:37:37 +00:00
don't count overage for AssertionErrors
A common pattern in sans-io is to essentially match on all variants of an enum, and then have a `else: raise AssertionError` in the end. This increases robustness as we spot incomplete coverage instead of silently passing. However, it makes no sense to explicitly test these asserts.
This commit is contained in:
parent
1e5464a9e6
commit
15270dfaf0
Loading…
Reference in New Issue
Block a user