ward icon indicating copy to clipboard operation
ward copied to clipboard

Testing warnings

Open ZeroIntensity opened this issue 3 years ago • 0 comments
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")

ZeroIntensity avatar Aug 17 '22 19:08 ZeroIntensity