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:
parent
9063e3a1fd
commit
0c028aa9e6
2
nova/tests/fixtures/notifications.py
vendored
2
nova/tests/fixtures/notifications.py
vendored
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user