◐ Shell
clean mode source ↗

bpo-32089: Fix warnings filters in dev mode by vstinner · Pull Request #4482 · python/cpython

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