summaryrefslogtreecommitdiff
path: root/oslo_serialization/jsonutils.py
diff options
context:
space:
mode:
Diffstat (limited to 'oslo_serialization/jsonutils.py')
-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