From 0c028aa9e66ea96e6a3c00c5995c5058fb8bfd8c Mon Sep 17 00:00:00 2001 From: Sean Mooney Date: Fri, 13 May 2022 14:13:21 +0100 Subject: [PATCH] trivial: fix deprecation warning in notification fixture This change simply replaces calling notifyAll() with notify_all() on the threading condition object in the notification fixture. notify_all() was introduced in python 2.6 Change-Id: If8d386f20693016dd35ecfdbc703bf31aa103a67 --- nova/tests/fixtures/notifications.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/nova/tests/fixtures/notifications.py b/nova/tests/fixtures/notifications.py index 54d6fc34072c..817982d4ff01 100644 --- a/nova/tests/fixtures/notifications.py +++ b/nova/tests/fixtures/notifications.py @@ -39,7 +39,7 @@ class _Sub(object): def received(self, notification): with self._cond: self._notifications.append(notification) - self._cond.notifyAll() + self._cond.notify_all() def wait_n(self, n, event, timeout): """Wait until at least n notifications have been received, and return