8000 Issue #19265: Improve test coverage of datetime.tzinfo · python/cpython@2b79338 · GitHub
[go: up one dir, main page]

Skip to content

Commit 2b79338

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.
2 parents 46cc42e + b8c34aa commit 2b79338

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

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)
0