You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Often when defining custom objects we end up testing that the __eq__ raises a particular error for unsupported comparisons. In practice, this means we have an unused comparison that triggers the B015 rule—see the MWE below. I wonder if there's a recommended way to get around this (without suppressing B015 altogether), or whether it could say be disabled within a with pytest.raises context.
Often when defining custom objects we end up testing that the
__eq__
raises a particular error for unsupported comparisons. In practice, this means we have an unused comparison that triggers theB015
rule—see the MWE below. I wonder if there's a recommended way to get around this (without suppressingB015
altogether), or whether it could say be disabled within awith pytest.raises
context.Minimal working example:
The text was updated successfully, but these errors were encountered: