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 /docs/devel/testing.rst | |
parent | 34a5cb6d8434303c170230644b2a7c1d5781d197 (diff) | |
download | qemu-861f724d03e1748cda1c5b9ec8457a368590cbd5.zip qemu-861f724d03e1748cda1c5b9ec8457a368590cbd5.tar.gz qemu-861f724d03e1748cda1c5b9ec8457a368590cbd5.tar.bz2 |
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 'docs/devel/testing.rst')
-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 fef64ac..87ed30a 100644 --- a/docs/devel/testing.rst +++ b/docs/devel/testing.rst @@ -1077,7 +1077,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. |