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/empty_cpu_model.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/empty_cpu_model.py')
-rw-r--r-- | tests/avocado/empty_cpu_model.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/avocado/empty_cpu_model.py b/tests/avocado/empty_cpu_model.py index 22f504418d..d906ef3d3c 100644 --- a/tests/avocado/empty_cpu_model.py +++ b/tests/avocado/empty_cpu_model.py @@ -15,5 +15,5 @@ class EmptyCPUModel(QemuSystemTest): self.vm.set_qmp_monitor(enabled=False) self.vm.launch() self.vm.wait() - self.assertEquals(self.vm.exitcode(), 1, "QEMU exit code should be 1") + self.assertEqual(self.vm.exitcode(), 1, "QEMU exit code should be 1") self.assertRegex(self.vm.get_log(), r'-cpu option cannot be empty') |