diff options
author | Stephen Finucane <sfinucan@redhat.com> | 2020-02-27 15:41:09 +0000 |
---|---|---|
committer | Stephen Finucane <sfinucan@redhat.com> | 2020-02-27 15:41:09 +0000 |
commit | 9fee0c4f48449d7fcd7354f58e3a0187b1891930 (patch) | |
tree | e14764efb2a219df71b942e23d6eb900e7a975b4 | |
parent | 301b0cb54c82a837913dc9d71e792eb4df9b7273 (diff) | |
download | oslo-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.py | 8 |
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 |