Message200375
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. |
|
Date |
User |
Action |
Args |
2013-10-19 05:49:17 | belopolsky | set | recipients:
+ belopolsky, ezio.melotti, Colin.Williams |
2013-10-19 05:49:17 | belopolsky | set | messageid: <1382161757.21.0.684378209412.issue19265@psf.upfronthosting.co.za> |
2013-10-19 05:49:17 | belopolsky | link | issue19265 messages |
2013-10-19 05:49:17 | belopolsky | create | |
|