commit:     ccb151319a16c0c3f6c540ca887040426474ca8b
Author:     Sam James <sam <AT> gentoo <DOT> org>
AuthorDate: Sat Nov 15 05:41:43 2025 +0000
Commit:     Sam James <sam <AT> gentoo <DOT> org>
CommitDate: Sat Nov 15 05:43:47 2025 +0000
URL:        https://gitweb.gentoo.org/proj/portage.git/commit/?id=ccb15131

OnlydepsMinimalTestCase: set EAPI for IDEPEND

This exposes a failure in the test. I've XFAIL'd it for now and filed
bug #966088 for this.

Inspired by Zac's a1e3fc814866019245579f9d1d29ef85c4e346ea.

Bug: https://bugs.gentoo.org/890777
Bug: https://bugs.gentoo.org/966088
Signed-off-by: Sam James <sam <AT> gentoo.org>

 lib/portage/tests/resolver/test_onlydeps_minimal.py | 7 ++++++-
 1 file changed, 6 insertions(+), 1 deletion(-)

diff --git a/lib/portage/tests/resolver/test_onlydeps_minimal.py 
b/lib/portage/tests/resolver/test_onlydeps_minimal.py
index 372c0e5aa9..ffb1cf4ef8 100644
--- a/lib/portage/tests/resolver/test_onlydeps_minimal.py
+++ b/lib/portage/tests/resolver/test_onlydeps_minimal.py
@@ -1,6 +1,8 @@
-# Copyright 2017 Gentoo Foundation
+# Copyright 2017-2025 Gentoo Authors
 # Distributed under the terms of the GNU General Public License v2
 
+import pytest
+
 from portage.tests import TestCase
 from portage.tests.resolver.ResolverPlayground import (
     ResolverPlayground,
@@ -9,9 +11,12 @@ from portage.tests.resolver.ResolverPlayground import (
 
 
 class OnlydepsMinimalTestCase(TestCase):
+
+    @pytest.mark.xfail(reason="bug #966088")
     def testOnlydepsMinimal(self):
         ebuilds = {
             "dev-libs/A-1": {
+                "EAPI": "8",
                 "DEPEND": "dev-libs/B",
                 "RDEPEND": "dev-libs/C",
                 "PDEPEND": "dev-libs/D",

Reply via email to