diff options
author | Thomas Huth <thuth@redhat.com> | 2023-11-14 14:43:26 +0100 |
---|---|---|
committer | Michael Tokarev <mjt@tls.msk.ru> | 2023-11-29 16:20:11 +0300 |
commit | dff579171c529f0330325f00370f131a2eab3a1b (patch) | |
tree | b9203559aab28050f109a8ca21211bb3273c4819 /docs | |
parent | e79947a57fe0150b42eeb666557c5e894543dcce (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>
(cherry picked from commit 861f724d03e1748cda1c5b9ec8457a368590cbd5)
Signed-off-by: Michael Tokarev <mjt@tls.msk.ru>
(Mjt: adjust context in pc_cpu_hotplug_props.py & cpu_queries.py for before
v8.1.0-1582-g684750ab4f "python/qemu: rename command() to cmd()")
Diffstat (limited to 'docs')
-rw-r--r-- | docs/devel/testing.rst | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/docs/devel/testing.rst b/docs/devel/testing.rst index e10c47b5a7..8cad156aa0 100644 --- a/docs/devel/testing.rst +++ b/docs/devel/testing.rst @@ -1051,7 +1051,7 @@ and hypothetical example follows: 'human-monitor-command', command_line='info version') - self.assertEquals(first_res, second_res, third_res) + self.assertEqual(first_res, second_res, third_res) At test "tear down", ``avocado_qemu.Test`` handles all the QEMUMachines shutdown. |