diff options
author | Thomas Huth <thuth@redhat.com> | 2023-11-14 14:43:26 +0100 |
---|---|---|
committer | Thomas Huth <thuth@redhat.com> | 2023-11-16 07:13:41 +0100 |
commit | 861f724d03e1748cda1c5b9ec8457a368590cbd5 (patch) | |
tree | 79b4afd147f2192bc24e4461f0755d594b878925 /tests/avocado/pc_cpu_hotplug_props.py | |
parent | 34a5cb6d8434303c170230644b2a7c1d5781d197 (diff) |
tests/avocado: Replace assertEquals() for Python 3.12 compatibility
assertEquals() has been removed in Python 3.12 and should be replaced by
assertEqual(). See: https://docs.python.org/3.12/whatsnew/3.12.html#id3
Message-ID: <20231114134326.287242-1-thuth@redhat.com>
Reviewed-by: Philippe Mathieu-Daudé <philmd@linaro.org>
Signed-off-by: Thomas Huth <thuth@redhat.com>
Diffstat (limited to 'tests/avocado/pc_cpu_hotplug_props.py')
-rw-r--r-- | tests/avocado/pc_cpu_hotplug_props.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/avocado/pc_cpu_hotplug_props.py b/tests/avocado/pc_cpu_hotplug_props.py index b56f51d02a..4bd3e02665 100644 --- a/tests/avocado/pc_cpu_hotplug_props.py +++ b/tests/avocado/pc_cpu_hotplug_props.py @@ -32,4 +32,4 @@ class OmittedCPUProps(QemuSystemTest): self.vm.add_args('-smp', '1,sockets=2,cores=2,threads=2,maxcpus=8') self.vm.add_args('-device', 'qemu64-x86_64-cpu,socket-id=1,core-id=0,thread-id=0') self.vm.launch() - self.assertEquals(len(self.vm.cmd('query-cpus-fast')), 2) + self.assertEqual(len(self.vm.cmd('query-cpus-fast')), 2) |