diff --git a/manila/tests/fake_notifier.py b/manila/tests/fake_notifier.py index 7fbaccd26f..0d83d580ce 100644 --- a/manila/tests/fake_notifier.py +++ b/manila/tests/fake_notifier.py @@ -15,8 +15,8 @@ import collections import functools -import anyjson from oslo import messaging +from oslo.serialization import jsonutils from manila import rpc @@ -53,7 +53,7 @@ class FakeNotifier(object): # NOTE(sileht): simulate the kombu serializer # this permit to raise an exception if something have not # been serialized correctly - anyjson.serialize(payload) + jsonutils.to_primitive(payload) msg = dict(publisher_id=self.publisher_id, priority=priority, event_type=event_type, diff --git a/requirements.txt b/requirements.txt index fcfba819a2..d422c4d904 100644 --- a/requirements.txt +++ b/requirements.txt @@ -6,7 +6,6 @@ pbr>=0.6,!=0.7,<1.0 alembic>=0.7.1 -anyjson>=0.3.3 Babel>=1.3 eventlet>=0.15.2 greenlet>=0.3.2