This is related to: https://github.com/Pylons/colander/issues/226
try: functools.update_wrapper(self, wrapped) except AttributeError: #non-function self.__doc__ = getattr(wrapped, '__doc__', None)
There seems to be cases where you need to write code to cover cases in certain versions of Python that are then inaccessible in other versions. In the above example there's code to handle an exception that occurs in py2, but never happens in py3 (in this situation). It'd be nice to selectively exclude coverage for only certain versions of Python but include it in the versions it's necessary for.