This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author belopolsky
Recipients Colin.Williams, belopolsky, ezio.melotti
Date 2013-10-19.05:49:17
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1382161757.21.0.684378209412.issue19265@psf.upfronthosting.co.za>
In-reply-to
Content
I guess the extra coverage is in "if getstate" branch of

class tzinfo:
    ...
    def __reduce__(self):
        getinitargs = getattr(self, "__getinitargs__", None)
        if getinitargs:
            args = getinitargs()
        else:
            args = ()
        getstate = getattr(self, "__getstate__", None)
        if getstate:
            state = getstate()
        else:
            state = getattr(self, "__dict__", None) or None
        if state is None:
            return (self.__class__, args)
        else:
            return (self.__class__, args, state)

The other branch is probably covered by timezone class tests.  The patch looks good to me.
History
Date User Action Args
2013-10-19 05:49:17belopolskysetrecipients: + belopolsky, ezio.melotti, Colin.Williams
2013-10-19 05:49:17belopolskysetmessageid: <1382161757.21.0.684378209412.issue19265@psf.upfronthosting.co.za>
2013-10-19 05:49:17belopolskylinkissue19265 messages
2013-10-19 05:49:17belopolskycreate