From 0e4c106ebb4322cdd667c1c27bf233db99944c41 Mon Sep 17 00:00:00 2001 From: Jan Kaluza Date: Tue, 4 Apr 2017 09:36:32 +0200 Subject: [PATCH] Fix another place where tests depend on the right ordering in lists --- tests/test_build/test_build.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/tests/test_build/test_build.py b/tests/test_build/test_build.py index 9a3ca550..51ef6da7 100644 --- a/tests/test_build/test_build.py +++ b/tests/test_build/test_build.py @@ -276,12 +276,12 @@ class TestBuild(unittest.TestCase): # Check that the components are added to buildroot after the batch # is built. buildroot_groups = [] - buildroot_groups.append([u'module-build-macros-0.1-1.module_fc4ed5f7.src.rpm-1-1']) - buildroot_groups.append([u'perl-Tangerine?#f25-1-1', u'perl-List-Compare?#f25-1-1']) - buildroot_groups.append([u'tangerine?#f25-1-1']) + buildroot_groups.append(set([u'module-build-macros-0.1-1.module_fc4ed5f7.src.rpm-1-1'])) + buildroot_groups.append(set([u'perl-Tangerine?#f25-1-1', u'perl-List-Compare?#f25-1-1'])) + buildroot_groups.append(set([u'tangerine?#f25-1-1'])) def on_buildroot_add_artifacts_cb(cls, artifacts, install): - self.assertEqual(buildroot_groups.pop(0), artifacts) + self.assertEqual(buildroot_groups.pop(0), set(artifacts)) TestModuleBuilder.on_buildroot_add_artifacts_cb = on_buildroot_add_artifacts_cb