test_npfuncs.py 384 B

12345678910111213
  1. import numpy as np
  2. from pandas import date_range
  3. import pandas._testing as tm
  4. class TestSplit:
  5. def test_split_non_utc(self):
  6. # GH#14042
  7. indices = date_range("2016-01-01 00:00:00+0200", freq="S", periods=10)
  8. result = np.split(indices, indices_or_sections=[])[0]
  9. expected = indices._with_freq(None)
  10. tm.assert_index_equal(result, expected)