Skip to content
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

bpo-32089: Fix warnings filters in dev mode #4482

Merged
merged 2 commits into from
Nov 21, 2017
Merged

bpo-32089: Fix warnings filters in dev mode #4482

merged 2 commits into from
Nov 21, 2017

Conversation

vstinner
Copy link
Member

@vstinner vstinner commented Nov 20, 2017

In the developer mode (-X dev), add the ResourceWarning filter
(action: "always) before the filter showing all warnings (action:
default).

Write a functional test to make sure that ResourceWarning is logged
twice at the same location in the developer mode.

Add dev_mode field to _PyCoreConfig.

https://bugs.python.org/issue32089

The developer mode (-X dev) now creates all default warnings filters
to order filters in the correct order to always show ResourceWarning
and make BytesWarning depend on the -b option.

Write a functional test to make sure that ResourceWarning is logged
twice at the same location in the developer mode.

Add a new 'dev_mode' field to _PyCoreConfig.
@vstinner vstinner changed the title bpo-32089: Fix ResourceWarning filter in dev mode bpo-32089: Fix warnings filters in dev mode Nov 21, 2017
@vstinner vstinner merged commit 09f3a8a into python:master Nov 21, 2017
@vstinner vstinner deleted the xdev_reswarn branch November 21, 2017 01:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants