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
This commit is contained in:
Sean Mooney 2022-05-13 14:13:21 +01:00
parent 9063e3a1fd
commit 0c028aa9e6
1 changed files with 1 additions and 1 deletions

View File

@ -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