dev-python/mypy: Fix libxml2-2.15 test failures

Signed-off-by: Michał Górny <mgorny@gentoo.org>
This commit is contained in:
Michał Górny
2025-10-15 11:54:50 +02:00
parent f37a6566d0
commit b8fe96dcca

View File

@@ -64,6 +64,12 @@ src_prepare() {
# don't force pytest-xdist, in case user asked for EPYTEST_JOBS=1
sed -i -e '/addopts/s:-nauto::' pyproject.toml || die
# https://github.com/python/mypy/issues/20070
if has_version ">=dev-libs/libxml2-2.15"; then
sed -e 's:<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">:<meta charset="UTF-8">:' \
-i test-data/unit/reports.test || die
fi
}
python_compile() {