Skip to content

Commit 8c0658d

Browse files
committed
make dateoffsets_0.15_2 a py2 pickle
1 parent dcc68d7 commit 8c0658d

File tree

3 files changed

+23
-27
lines changed

3 files changed

+23
-27
lines changed

doc/source/whatsnew/v0.16.0.txt

+1-1
Original file line numberDiff line numberDiff line change
@@ -464,7 +464,7 @@ Bug Fixes
464464
To reproduce the old behavior, simply add more precision to the label (e.g., use ``2000-02-01`` instead of ``2000-02``).
465465
- Bug in adding ``offsets.Nano`` to other offets raises ``TypeError`` (:issue:`9284`)
466466
- Bug in ``DatetimeIndex`` iteration, related to (:issue:`8890`), fixed in (:issue:`9100`)
467-
- Bug in ``resample`` around DST transitions (:issue:`5172`, :issue:`8744`, :issue:`8653`, :issue:`9173`, :issue:`9468`). This required fixing offset classes so they behave correctly on DST transitions.
467+
- Bugs in ``resample`` around DST transitions. This required fixing offset classes so they behave correctly on DST transitions. (:issue:`5172`, :issue:`8744`, :issue:`8653`, :issue:`9173`, :issue:`9468`).
468468
- Bug in binary operator method (eg ``.mul()``) alignment with integer levels (:issue:`9463`).
469469
- Bug in boxplot, scatter and hexbin plot may show an unnecessary warning (:issue:`8877`)
470470
- Bug in subplot with ``layout`` kw may show unnecessary warning (:issue:`9464`)

pandas/tseries/tests/data/dateoffset_0_15_2.pickle

+19-23
Original file line numberDiff line numberDiff line change
@@ -127,60 +127,56 @@ Rp47
127127
g8
128128
I00
129129
sg12
130-
g2
131-
(cdateutil.relativedelta
130+
(idateutil.relativedelta
132131
relativedelta
133132
p49
134-
g4
135-
Ntp50
136-
Rp51
137-
(dp52
133+
(dp50
138134
S'_has_time'
139-
p53
135+
p51
140136
I0
141137
sS'hour'
142-
p54
138+
p52
143139
NsS'seconds'
144-
p55
140+
p53
145141
I0
146142
sS'months'
147-
p56
143+
p54
148144
I0
149145
sS'year'
150-
p57
146+
p55
151147
NsS'days'
152-
p58
148+
p56
153149
I0
154150
sS'years'
155-
p59
151+
p57
156152
I1
157153
sS'hours'
158-
p60
154+
p58
159155
I0
160156
sS'second'
161-
p61
157+
p59
162158
NsS'microsecond'
163-
p62
159+
p60
164160
Nsg16
165161
NsS'microseconds'
166-
p63
162+
p61
167163
I0
168164
sS'leapdays'
169-
p64
165+
p62
170166
I0
171167
sS'minutes'
172-
p65
168+
p63
173169
I0
174170
sS'day'
175-
p66
171+
p64
176172
NsS'minute'
177-
p67
173+
p65
178174
Nsg27
179175
Nsbsg17
180176
I01
181177
sg9
182-
(dp68
183-
g59
178+
(dp66
179+
g57
184180
I1
185181
ssg11
186182
I1

pandas/tseries/tests/test_offsets.py

+3-3
Original file line numberDiff line numberDiff line change
@@ -421,7 +421,7 @@ def test_pickle_v0_15_2(self):
421421
# This code was executed once on v0.15.2 to generate the pickle:
422422
# with open(pickle_path, 'wb') as f: pickle.dump(offsets, f)
423423
#
424-
self.assertDictEqual(offsets, read_pickle(pickle_path))
424+
tm.assert_dict_equal(offsets, read_pickle(pickle_path))
425425

426426
class TestDateOffset(Base):
427427
_multiprocess_can_split_ = True
@@ -3310,7 +3310,7 @@ def test_springforward_singular(self):
33103310
tstart=self._make_timestamp(self.ts_pre_springfwd, hrs_pre, tz),
33113311
expected_utc_offset=None
33123312
)
3313-
3313+
33143314
def test_all_offset_classes(self):
33153315
tests = {MonthBegin: ['11/2/2012', '12/1/2012'],
33163316
MonthEnd: ['11/2/2012', '11/30/2012'],
@@ -3329,7 +3329,7 @@ def test_all_offset_classes(self):
33293329
BQuarterEnd: ['11/2/2012', '12/31/2012'],
33303330
Day: ['11/4/2012', '11/4/2012 23:00']
33313331
}
3332-
3332+
33333333
for offset, test_values in iteritems(tests):
33343334
first = Timestamp(test_values[0], tz='US/Eastern') + offset()
33353335
second = Timestamp(test_values[1], tz='US/Eastern')

0 commit comments

Comments
 (0)