diff options
| author | Liguros - Gitlab CI/CD [develop] <gitlab@liguros.net> | 2025-05-14 18:59:50 +0000 |
|---|---|---|
| committer | Liguros - Gitlab CI/CD [develop] <gitlab@liguros.net> | 2025-05-14 18:59:50 +0000 |
| commit | 00278f6cc9e8280380a376f72ec209c3efc960a4 (patch) | |
| tree | fb64e4ad90415827deb50f7ddc78db6898c1a100 /dev-python/pytest | |
| parent | f8809af2354fe27fa3c1df0e9716fa59d12dca19 (diff) | |
| download | baldeagleos-repo-00278f6cc9e8280380a376f72ec209c3efc960a4.tar.gz baldeagleos-repo-00278f6cc9e8280380a376f72ec209c3efc960a4.tar.xz baldeagleos-repo-00278f6cc9e8280380a376f72ec209c3efc960a4.zip | |
Adding metadata
Diffstat (limited to 'dev-python/pytest')
| -rw-r--r-- | dev-python/pytest/files/pytest-8.3.5-test.patch | 24 | ||||
| -rw-r--r-- | dev-python/pytest/pytest-8.3.5.ebuild | 14 |
2 files changed, 38 insertions, 0 deletions
diff --git a/dev-python/pytest/files/pytest-8.3.5-test.patch b/dev-python/pytest/files/pytest-8.3.5-test.patch new file mode 100644 index 000000000000..9a900c69244a --- /dev/null +++ b/dev-python/pytest/files/pytest-8.3.5-test.patch @@ -0,0 +1,24 @@ +From b7854561993d00b8dddf3f43ce6b042b4111fa4c Mon Sep 17 00:00:00 2001 +From: jakkdl <h6+github@pm.me> +Date: Wed, 12 Mar 2025 15:10:29 +0100 +Subject: [PATCH] fix attrs==25.2.0 compatibility + +--- + changelog/13291.bugfix.rst | 1 + + src/_pytest/assertion/util.py | 2 +- + 2 files changed, 2 insertions(+), 1 deletion(-) + create mode 100644 changelog/13291.bugfix.rst + +diff --git a/src/_pytest/assertion/util.py b/src/_pytest/assertion/util.py +index 30aee185d57..c545e6cd20c 100644 +--- a/src/_pytest/assertion/util.py ++++ b/src/_pytest/assertion/util.py +@@ -169,7 +169,7 @@ def has_default_eq( + code_filename = obj.__eq__.__code__.co_filename + + if isattrs(obj): +- return "attrs generated eq" in code_filename ++ return "attrs generated " in code_filename + + return code_filename == "<string>" # data class + return True diff --git a/dev-python/pytest/pytest-8.3.5.ebuild b/dev-python/pytest/pytest-8.3.5.ebuild index a7649250d99e..6089665e890f 100644 --- a/dev-python/pytest/pytest-8.3.5.ebuild +++ b/dev-python/pytest/pytest-8.3.5.ebuild @@ -45,6 +45,11 @@ BDEPEND=" ) " +PATCHES=( + # https://github.com/pytest-dev/pytest/pull/13291 + "${FILESDIR}/${P}-test.patch" +) + src_test() { # workaround new readline defaults echo "set enable-bracketed-paste off" > "${T}"/inputrc || die @@ -106,6 +111,15 @@ python_test() { testing/test_skipping.py::test_errors_in_xfail_skip_expressions ) ;; + python3.14*) + EPYTEST_DESELECT+=( + # still broken on main, as of 2025-05-14 + testing/test_unraisableexception.py::test_unraisable + testing/test_unraisableexception.py::test_unraisable_in_setup + testing/test_unraisableexception.py::test_unraisable_in_teardown + testing/test_debugging.py::test_raises_bdbquit_with_eoferror + ) + ;; esac local EPYTEST_XDIST=1 |
