I want to 'always' break on AssertionError
, except for certain locations. E.g. ..site-packages/_pytest/config/__init__.py
an exception is thrown just to check whether assertions are activated:
def _assertion_supported():
try:
assert False
except AssertionError:
return True
else:
return False
Is there a way to say "always break on AssertionError
except for those locations"?