From 2b3416c9556ba85bc6f9c39b916644ffa718cab1 Mon Sep 17 00:00:00 2001 From: Zac Medico Date: Wed, 8 Sep 2010 14:21:26 -0700 Subject: [PATCH] Use a longer dependency chain in DepcleanWithDepsTestCase, to make sure unmerge order is correct. --- pym/portage/tests/resolver/test_depclean.py | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/pym/portage/tests/resolver/test_depclean.py b/pym/portage/tests/resolver/test_depclean.py index 3d53d6476..89e7a8aa3 100644 --- a/pym/portage/tests/resolver/test_depclean.py +++ b/pym/portage/tests/resolver/test_depclean.py @@ -43,13 +43,17 @@ class DepcleanWithDepsTestCase(TestCase): "dev-libs/A-1": { "RDEPEND": "dev-libs/C" }, "dev-libs/B-1": { "RDEPEND": "dev-libs/D" }, "dev-libs/C-1": {}, - "dev-libs/D-1": {}, + "dev-libs/D-1": { "RDEPEND": "dev-libs/E" }, + "dev-libs/E-1": { "RDEPEND": "dev-libs/F" }, + "dev-libs/F-1": {}, } installed = { "dev-libs/A-1": { "RDEPEND": "dev-libs/C" }, "dev-libs/B-1": { "RDEPEND": "dev-libs/D" }, "dev-libs/C-1": {}, - "dev-libs/D-1": {}, + "dev-libs/D-1": { "RDEPEND": "dev-libs/E" }, + "dev-libs/E-1": { "RDEPEND": "dev-libs/F" }, + "dev-libs/F-1": {}, } world = ( @@ -61,7 +65,8 @@ class DepcleanWithDepsTestCase(TestCase): [], options = {"--depclean": True}, success = True, - cleanlist = ["dev-libs/B-1", "dev-libs/D-1"]), + cleanlist = ["dev-libs/B-1", "dev-libs/D-1", + "dev-libs/E-1", "dev-libs/F-1"]), ) playground = ResolverPlayground(ebuilds=ebuilds, installed=installed, world=world) -- 2.26.2