Skip to content

pytest should integrate with warnings module #253

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
pytestbot opened this issue Jan 20, 2013 · 1 comment
Closed

pytest should integrate with warnings module #253

pytestbot opened this issue Jan 20, 2013 · 1 comment
Labels
topic: reporting related to terminal output and user-facing messages and errors type: enhancement new feature or API change, should be merged into features branch

Comments

@pytestbot
Copy link
Contributor

Originally reported by: Andreas Kloeckner (BitBucket: inducer, GitHub: inducer)


Hi there,

I would like it if pytest could highlight tests that trigger Python warnings via the warnings module, print statistics on them, and, optionally, print all those warnings. When (especially deprecation) warnings are used to evolve interfaces, this allows catching all those early on as opposed to when they actually cause an error.

Thanks,
Andreas


@pytestbot pytestbot added the type: enhancement new feature or API change, should be merged into features branch label Jun 15, 2015
@nicoddemus nicoddemus added the topic: reporting related to terminal output and user-facing messages and errors label Aug 11, 2015
@RonnyPfannschmidt
Copy link
Member

https://github.com/fschulze/pytest-warnings is a starting point that will be merged into core later on

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
topic: reporting related to terminal output and user-facing messages and errors type: enhancement new feature or API change, should be merged into features branch
Projects
None yet
Development

No branches or pull requests

3 participants