summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStephen Finucane <sfinucan@redhat.com>2020-02-27 15:41:09 +0000
committerStephen Finucane <sfinucan@redhat.com>2020-02-27 15:41:09 +0000
commit9fee0c4f48449d7fcd7354f58e3a0187b1891930 (patch)
treee14764efb2a219df71b942e23d6eb900e7a975b4
parent301b0cb54c82a837913dc9d71e792eb4df9b7273 (diff)
downloadoslo-serialization-9fee0c4f48449d7fcd7354f58e3a0187b1891930.tar.gz
Remove long-dead workaround3.1.0
We don't need to worry about versions of Mox released in 2011 any more https://bugs.launchpad.net/nova/+bug/852095 Change-Id: Ifd2228071c70e516f11eefde29932813b7cf6a97 Signed-off-by: Stephen Finucane <sfinucan@redhat.com>
-rw-r--r--oslo_serialization/jsonutils.py8
1 files changed, 0 insertions, 8 deletions
diff --git a/oslo_serialization/jsonutils.py b/oslo_serialization/jsonutils.py
index aeb884a..b56310a 100644
--- a/oslo_serialization/jsonutils.py
+++ b/oslo_serialization/jsonutils.py
@@ -144,14 +144,6 @@ def to_primitive(value, convert_instances=False, convert_datetime=True,
if any(test(value) for test in _nasty_type_tests):
return fallback(value)
- # FIXME(vish): Workaround for LP bug 852095. Without this workaround,
- # tests that raise an exception in a mocked method that
- # has a @wrap_exception with a notifier will fail. If
- # we up the dependency to 0.5.4 (when it is released) we
- # can remove this workaround.
- if getattr(value, '__module__', None) == 'mox':
- return 'mock'
-
if level > max_depth:
return None