Skip to content

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

Merged
vstinner merged 2 commits intopython:masterfrom
vstinner:xdev_reswarn
Nov 21, 2017
Merged

bpo-32089: Fix warnings filters in dev mode#4482
vstinner merged 2 commits intopython:masterfrom
vstinner:xdev_reswarn

Conversation

@vstinner
Copy link
Copy Markdown
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