diff options
author | Michał Górny <mgorny@gentoo.org> | 2024-05-14 17:12:10 +0200 |
---|---|---|
committer | Michał Górny <mgorny@gentoo.org> | 2024-05-14 17:13:02 +0200 |
commit | 91ffd81683c0d502ca75475066b29a98e781eeef (patch) | |
tree | f4025d4600860a03302856451611b9a6823177b3 /dev-python/pytest | |
parent | dev-python/mock: Enable py3.13 (diff) | |
download | gentoo-91ffd81683c0d502ca75475066b29a98e781eeef.tar.gz gentoo-91ffd81683c0d502ca75475066b29a98e781eeef.tar.bz2 gentoo-91ffd81683c0d502ca75475066b29a98e781eeef.zip |
dev-python/pytest: Enable testing on py3.13
Signed-off-by: Michał Górny <mgorny@gentoo.org>
Diffstat (limited to 'dev-python/pytest')
-rw-r--r-- | dev-python/pytest/pytest-8.2.0.ebuild | 44 |
1 files 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 7c7bab6ebe19..54e62aabbc4d 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 |