dev-python/testfixtures: Enable py3.13

Signed-off-by: Michał Górny <mgorny@gentoo.org>
This commit is contained in:
Michał Górny
2024-06-19 19:15:00 +02:00
parent 358560ab22
commit 2dcf63706b

View File

@@ -4,7 +4,7 @@
EAPI=8
DISTUTILS_USE_PEP517=setuptools
PYTHON_COMPAT=( python3_{10..12} )
PYTHON_COMPAT=( python3_{10..13} )
inherit distutils-r1 pypi
@@ -24,7 +24,9 @@ BDEPEND="
dev-python/django[${PYTHON_USEDEP}]
dev-python/pytest-django[${PYTHON_USEDEP}]
>=dev-python/sybil-6[${PYTHON_USEDEP}]
>=dev-python/twisted-18[${PYTHON_USEDEP}]
$(python_gen_cond_dep '
>=dev-python/twisted-18[${PYTHON_USEDEP}]
' 3.{10..12})
sys-libs/timezone-data
)
"
@@ -42,6 +44,20 @@ python_test() {
testfixtures/tests/test_shouldwarn.py::ShouldWarnTests::test_filter_missing
testfixtures/tests/test_shouldwarn.py::ShouldWarnTests::test_filter_present
)
case ${EPYTHON} in
python3.13)
EPYTEST_DESELECT+=(
# changed exception message
testfixtures/tests/test_replace.py::TestReplaceWithInterestingOriginsNotStrict::test_invalid_attribute_on_instance_of_slotted_cl
)
esac
local EPYTEST_IGNORE=()
if ! has_version "dev-python/twisted[${PYTHON_USEDEP}]"; then
EPYTEST_IGNORE+=(
testfixtures/tests/test_twisted.py
)
fi
epytest
}