qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [PATCH] tests/avocado: Replace assertEquals() for Python 3.12 compat


From: Philippe Mathieu-Daudé
Subject: Re: [PATCH] tests/avocado: Replace assertEquals() for Python 3.12 compatibility
Date: Tue, 14 Nov 2023 15:10:12 +0100
User-agent: Mozilla Thunderbird

Hi Thomas,

On 14/11/23 14:43, Thomas Huth wrote:
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

From this list I see assertEquals() has been deprecated in 3.2, along
with assertRegexpMatches(). No warning for this single use?

tests/avocado/version.py:25: self.assertRegexpMatches(res, r'^(\d+\.\d+\.\d)')

Otherwise,
Reviewed-by: Philippe Mathieu-Daudé <philmd@linaro.org>

Signed-off-by: Thomas Huth <thuth@redhat.com>
---
  docs/devel/testing.rst                  |  2 +-
  tests/avocado/cpu_queries.py            |  2 +-
  tests/avocado/empty_cpu_model.py        |  2 +-
  tests/avocado/pc_cpu_hotplug_props.py   |  2 +-
  tests/avocado/x86_cpu_model_versions.py | 96 ++++++++++++-------------
  5 files changed, 52 insertions(+), 52 deletions(-)




reply via email to

[Prev in Thread] Current Thread [Next in Thread]