pkgcore / pkgcheck

pkgcore-based QA utility for ebuild repos
https://pkgcore.github.io/pkgcheck
BSD 3-Clause "New" or "Revised" License
34 stars 29 forks source link

RepoDirCheck: use charset_normalizer.is_binary() #611

Closed cjmayo closed 10 months ago

cjmayo commented 11 months ago

Saves maintaining some code here, dev-python/requests already requires charset-normalizer and installing chardet means requests (and bs4) will use that instead. But I've only updated some of the tests (I can't see what is failing the others) and charset-normalizer-3.2.0 is new and not yet stabilised in Gentoo.

FAILED tests/scripts/test_pkgcheck_scan.py::TestPkgcheckScan::test_scan_verify[gentoo] - Failed: unmatched repo scan results: FAILED tests/scripts/test_pkgcheck_scan.py::TestPkgcheckScan::test_fix[RepoDirCheck-BinaryFile] - Failed: unexpected repo scan results: