Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit e3385b4

Browse files
committed
Issue #19265: Improve test coverage of datetime.tzinfo
Without the patch, line 1010 of Lib/datetime.py wasn't covered by the test suite. Patch by Colin Williams.
1 parent 1cd4ff6 commit e3385b4

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

Lib/test/datetimetester.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -117,6 +117,9 @@ class PicklableFixedOffset(FixedOffset):
117117
def __init__(self, offset=None, name=None, dstoffset=None):
118118
FixedOffset.__init__(self, offset, name, dstoffset)
119119

120+
def __getstate__(self):
121+
return self.__dict__
122+
120123
class _TZInfo(tzinfo):
121124
def utcoffset(self, datetime_module):
122125
return random.random()

0 commit comments

Comments
 (0)