]> git.ipfire.org Git - thirdparty/qemu.git/commit
tests/avocado: Replace assertEquals() for Python 3.12 compatibility
authorThomas Huth <thuth@redhat.com>
Tue, 14 Nov 2023 13:43:26 +0000 (14:43 +0100)
committerMichael Tokarev <mjt@tls.msk.ru>
Wed, 29 Nov 2023 13:20:11 +0000 (16:20 +0300)
commitdff579171c529f0330325f00370f131a2eab3a1b
treeb9203559aab28050f109a8ca21211bb3273c4819
parente79947a57fe0150b42eeb666557c5e894543dcce
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()")
docs/devel/testing.rst
tests/avocado/cpu_queries.py
tests/avocado/empty_cpu_model.py
tests/avocado/pc_cpu_hotplug_props.py
tests/avocado/x86_cpu_model_versions.py