From 82b8e6da2e34bebd2bd59e3443cc6f4948e14766 Mon Sep 17 00:00:00 2001 From: yatinkarel Date: Wed, 12 May 2021 10:34:49 +0530 Subject: [PATCH] Use assertCountEqual instead of assertItemsEqual The assertItemsEqual method has been removed in Python 3.3 [1] but it was kept alive by unittest2, imported by testtools. For better compatibility, change to assertCountEqual. [1] https://bugs.python.org/issue17866 Change-Id: Ia006ecb834f180dbaef5a617269fe8416769e109 --- scciclient/tests/irmc/test_elcm.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scciclient/tests/irmc/test_elcm.py b/scciclient/tests/irmc/test_elcm.py index 5a0159a..460b82e 100644 --- a/scciclient/tests/irmc/test_elcm.py +++ b/scciclient/tests/irmc/test_elcm.py @@ -2608,6 +2608,6 @@ class ELCMTestCase(testtools.TestCase): "name": "hyper_threading_enabled", "value": "True" }] - self.assertItemsEqual(expect_settings, result) + self.assertCountEqual(expect_settings, result) backup_bios_config_mock.assert_called_once_with( self.irmc_info)