summaryrefslogtreecommitdiffstats
path: root/Lib
diff options
context:
space:
mode:
authorBerker Peksag <berker.peksag@gmail.com>2016-03-19 11:16:52 (GMT)
committerBerker Peksag <berker.peksag@gmail.com>2016-03-19 11:16:52 (GMT)
commit02cce6921700051031f9b07adacd1605b84c57c1 (patch)
tree1e662588d2031148367d7b11c03c4738ba2ca548 /Lib
parent3c3d7f4b99b1f62567592ef57216e07677f17d7f (diff)
parente3385b4e3dc1768709940ef0bab88cd1b11215fa (diff)
downloadcpython-02cce6921700051031f9b07adacd1605b84c57c1.zip
cpython-02cce6921700051031f9b07adacd1605b84c57c1.tar.gz
cpython-02cce6921700051031f9b07adacd1605b84c57c1.tar.bz2
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.
Diffstat (limited to 'Lib')
-rw-r--r--Lib/test/datetimetester.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/Lib/test/datetimetester.py b/Lib/test/datetimetester.py
index b49942a..4f20ffd 100644
--- a/Lib/test/datetimetester.py
+++ b/Lib/test/datetimetester.py
@@ -117,6 +117,9 @@ class PicklableFixedOffset(FixedOffset):
def __init__(self, offset=None, name=None, dstoffset=None):
FixedOffset.__init__(self, offset, name, dstoffset)
+ def __getstate__(self):
+ return self.__dict__
+
class _TZInfo(tzinfo):
def utcoffset(self, datetime_module):
return random.random()