From 91ffd81683c0d502ca75475066b29a98e781eeef Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Micha=C5=82=20G=C3=B3rny?= Date: Tue, 14 May 2024 17:12:10 +0200 Subject: [PATCH] dev-python/pytest: Enable testing on py3.13 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Michał Górny --- dev-python/pytest/pytest-8.2.0.ebuild | 44 ++++++++++++++++++++++----- 1 file changed, 36 insertions(+), 8 deletions(-) diff --git a/dev-python/pytest/pytest-8.2.0.ebuild b/dev-python/pytest/pytest-8.2.0.ebuild index 7c7bab6ebe191..54e62aabbc4df 100644 --- a/dev-python/pytest/pytest-8.2.0.ebuild +++ b/dev-python/pytest/pytest-8.2.0.ebuild @@ -4,8 +4,8 @@ EAPI=8 DISTUTILS_USE_PEP517=setuptools -PYTHON_TESTED=( python3_{10..12} pypy3 ) -PYTHON_COMPAT=( "${PYTHON_TESTED[@]}" python3_13 ) +PYTHON_TESTED=( python3_{10..13} pypy3 ) +PYTHON_COMPAT=( "${PYTHON_TESTED[@]}" ) inherit distutils-r1 pypi @@ -101,12 +101,40 @@ python_test() { testing/test_debugging.py::TestPDB::test_pdb_with_caplog_on_pdb_invocation ) - [[ ${EPYTHON} == pypy3 ]] && EPYTEST_DESELECT+=( - # regressions on pypy3.9 - # https://github.com/pytest-dev/pytest/issues/9787 - testing/test_skipping.py::test_errors_in_xfail_skip_expressions - testing/test_unraisableexception.py - ) + case ${EPYTHON} in + pypy3) + EPYTEST_DESELECT+=( + # regressions on pypy3.9 + # https://github.com/pytest-dev/pytest/issues/9787 + testing/test_skipping.py::test_errors_in_xfail_skip_expressions + testing/test_unraisableexception.py + ) + ;; + python3.13) + EPYTEST_DESELECT+=( + # regressions reproduced via `tox -e py313` + # https://github.com/pytest-dev/pytest/issues/12323 + testing/code/test_excinfo.py::TestFormattedExcinfo::test_repr_traceback_recursion + testing/code/test_excinfo.py::TestTraceback_f_g_h::test_traceback_recursion_index + testing/code/test_excinfo.py::test_exception_repr_extraction_error_on_recursion + testing/code/test_source.py::test_getfslineno + testing/test_collection.py::TestSession::test_collect_custom_nodes_multi_id + testing/test_collection.py::TestSession::test_collect_protocol_single_function + testing/test_collection.py::TestSession::test_collect_subdir_event_ordering + testing/test_collection.py::TestSession::test_collect_two_commandline_args + testing/test_doctest.py::TestDoctests::test_doctest_linedata_on_property + testing/test_doctest.py::TestDoctests::test_doctest_unexpected_exception + testing/test_legacypath.py::test_testdir_makefile_ext_none_raises_type_error + + # TODO? + testing/code/test_excinfo.py::test_excinfo_no_sourcecode + + # more weird timeouts + testing/test_debugging.py::TestPDB::test_pdb_used_outside_test + testing/test_debugging.py::TestPDB::test_pdb_used_in_generate_tests + ) + ;; + esac local EPYTEST_XDIST=1 epytest