MCPcopy
hub / github.com/pandas-dev/pandas / test_fallback_singular

Method test_fallback_singular

pandas/tests/tseries/offsets/test_dst.py:176–187  ·  view source on GitHub ↗
(self, performance_warning)

Source from the content-addressed store, hash-verified

174 )
175
176 def test_fallback_singular(self, performance_warning):
177 # in the case of singular offsets, we don't necessarily know which utc
178 # offset the new Timestamp will wind up in (the tz for 1 month may be
179 # different from 1 second) so we don't specify an expected_utc_offset
180 for tz, utc_offsets in self.timezone_utc_offsets.items():
181 hrs_pre = utc_offsets["utc_offset_standard"]
182 self._test_all_offsets(
183 n=1,
184 performance_warning=performance_warning,
185 tstart=self._make_timestamp(self.ts_pre_fallback, hrs_pre, tz),
186 expected_utc_offset=None,
187 )
188
189 def test_springforward_singular(self, performance_warning):
190 for tz, utc_offsets in self.timezone_utc_offsets.items():

Callers

nothing calls this directly

Calls 3

_test_all_offsetsMethod · 0.95
_make_timestampMethod · 0.95
itemsMethod · 0.45

Tested by

no test coverage detected