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
This commit is contained in:
parent
e66d50cd3f
commit
82b8e6da2e
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue