setuptools icon indicating copy to clipboard operation
setuptools copied to clipboard

[debt] Many ResourceWarnings when `PYTHONWARNDEFAULTENCODING = 1`

Open jaraco opened this issue 2 years ago • 1 comments

In jaraco/skeleton, I've rolled out PYTHONWARNDEFAULTENCODING=1. Merging that change into Setuptools causes the test suite to fail due to pytest.ini:filterwarnings[error].

jaraco avatar Feb 07 '23 14:02 jaraco

I figured this would be already known (it makes tests much harder to read) and I see there's a WIP branch for it.

The rule is still in "preview", but this can be checked for setuptool's own code using https://docs.astral.sh/ruff/rules/unspecified-encoding/

Avasam avatar Nov 28 '23 21:11 Avasam