Skip to content
This repository has been archived by the owner on Oct 1, 2024. It is now read-only.

Testing warnings #343

Open
ZeroIntensity opened this issue Aug 17, 2022 · 0 comments
Open

Testing warnings #343

ZeroIntensity opened this issue Aug 17, 2022 · 0 comments

Comments

@ZeroIntensity
Copy link

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")
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant