Remove long-dead workaround
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>
This commit is contained in:
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user