From efe7b1c0b2be370c7c9c41b6c5ecb900e6e2db39 Mon Sep 17 00:00:00 2001 From: Eric Harney Date: Wed, 7 Dec 2016 11:04:13 -0500 Subject: [PATCH] Remove anyjson test dependency This is unneeded, we can just use json here and not need an additional dep, since we use the json module in many places in Cinder. Change-Id: I5988c190659d349ad16debb4cd6e435e325975fe --- cinder/tests/unit/fake_notifier.py | 4 ++-- test-requirements.txt | 1 - 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/cinder/tests/unit/fake_notifier.py b/cinder/tests/unit/fake_notifier.py index 45b1493a45d..312a474c92c 100644 --- a/cinder/tests/unit/fake_notifier.py +++ b/cinder/tests/unit/fake_notifier.py @@ -15,7 +15,7 @@ import collections import functools -import anyjson +import json import oslo_messaging as messaging from cinder 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) + json.dumps(payload) msg = dict(publisher_id=self.publisher_id, priority=priority, event_type=event_type, diff --git a/test-requirements.txt b/test-requirements.txt index 18a819ffa05..e13756695ae 100644 --- a/test-requirements.txt +++ b/test-requirements.txt @@ -5,7 +5,6 @@ # Install bounded pep8/pyflakes first, then let flake8 install hacking<0.12,>=0.11.0 # Apache-2.0 -anyjson>=0.3.3 # BSD coverage>=4.0 # Apache-2.0 ddt>=1.0.1 # MIT fixtures>=3.0.0 # Apache-2.0/BSD