A bravado_core.spec.Spec instance is currently not deep copiable.
So running something like deepcopy(Spec.from_dict(<valid_specs>)) results on an unbounded recursion error.
The goal of this PR is to address this issue by defining the __deepcopy__ dunder method.
Coverage decreased (-0.5%) to 98.395% when pulling 7eea6a1dc815cf88982c365ceba25c48eef6facf on macisamuele:maci-ensure-that-Spec-is-deep-copiable into aaf0df5fabdb5b3f18906a2af5b225495f60f90c on Yelp:master.
A
bravado_core.spec.Spec
instance is currently not deep copiable. So running something likedeepcopy(Spec.from_dict(<valid_specs>))
results on an unbounded recursion error.The goal of this PR is to address this issue by defining the
__deepcopy__
dunder method.