summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichał Górny <mgorny@gentoo.org>2023-05-28 18:03:19 +0200
committerMichał Górny <mgorny@gentoo.org>2023-05-28 18:25:47 +0200
commit1bf6e0ed3f72cec6aa5f877b739cad6f014022a7 (patch)
treec1e431f57d4c9514825baa011d6d1ef369306c53 /dev-python/Babel
parentsys-kernel/gentoo-kernel: Bump genpatches in 6.3.4 for XFS fix (diff)
downloadgentoo-1bf6e0ed3f72cec6aa5f877b739cad6f014022a7.tar.gz
gentoo-1bf6e0ed3f72cec6aa5f877b739cad6f014022a7.tar.bz2
gentoo-1bf6e0ed3f72cec6aa5f877b739cad6f014022a7.zip
dev-python/Babel: Enable py3.12
Signed-off-by: Michał Górny <mgorny@gentoo.org>
Diffstat (limited to 'dev-python/Babel')
-rw-r--r--dev-python/Babel/Babel-2.12.1.ebuild15
1 files changed, 14 insertions, 1 deletions
diff --git a/dev-python/Babel/Babel-2.12.1.ebuild b/dev-python/Babel/Babel-2.12.1.ebuild
index 3494b95378a0..29fa510508d9 100644
--- a/dev-python/Babel/Babel-2.12.1.ebuild
+++ b/dev-python/Babel/Babel-2.12.1.ebuild
@@ -5,7 +5,7 @@ EAPI=8
DISTUTILS_USE_PEP517=setuptools
PYPI_NO_NORMALIZE=1
-PYTHON_COMPAT=( pypy3 python3_{9..11} )
+PYTHON_COMPAT=( pypy3 python3_{10..12} )
PYTHON_REQ_USE="threads(+)"
inherit distutils-r1 pypi
@@ -61,6 +61,19 @@ python_configure() {
}
python_test() {
+ local EPYTEST_DESELECT=()
+ if [[ ${EPYTHON} == python3.12 ]]; then
+ EPYTEST_DESELECT+=(
+ # seems to be a corner case, might be a regression in cpython
+ # https://github.com/python-babel/babel/issues/1005
+ tests/messages/test_extract.py::ExtractPythonTestCase::test_utf8_message_with_utf8_bom
+ tests/messages/test_extract.py::ExtractPythonTestCase::test_utf8_message_with_utf8_bom_and_magic_comment
+ tests/messages/test_extract.py::ExtractPythonTestCase::test_utf8_raw_strings_match_unicode_strings
+ tests/messages/test_extract.py::ExtractTestCase::test_f_strings
+ tests/messages/test_extract.py::ExtractTestCase::test_f_strings_non_utf8
+ )
+ fi
+
local -x TZ=UTC
epytest
}