ward
ward copied to clipboard
Testing warnings
trafficstars
didnt see anything in the docs for testing warnings. if this doesn't exist, perhaps it could be added?
syntax could be pretty much the same as exceptions:
@test("...")
def _():
with warns(UserWarning):
warnings.warn("hi")