Skip to content

Commit e1092eb

Browse files
committed
update tests
1 parent 7a4e8a7 commit e1092eb

File tree

2 files changed

+1
-33
lines changed

2 files changed

+1
-33
lines changed

pandas/tests/arrays/test_array.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -118,7 +118,7 @@ def test_dt64_array(dtype_unit):
118118
(
119119
pd.DatetimeIndex(["2000", "2001"]),
120120
None,
121-
DatetimeArray._from_sequence(["2000", "2001"], dtype="M8[ns]"),
121+
DatetimeArray._from_sequence(["2000", "2001"], dtype="M8[s]"),
122122
),
123123
(
124124
["2000", "2001"],

pandas/tests/tseries/offsets/test_business_hour.py

-32
Original file line numberDiff line numberDiff line change
@@ -946,38 +946,6 @@ def test_apply_nanoseconds(self):
946946
for base, expected in cases.items():
947947
assert_offset_equal(offset, base, expected)
948948

949-
def test_datetimeindex(self):
950-
idx1 = date_range(start="2014-07-04 15:00", end="2014-07-08 10:00", freq="bh")
951-
idx2 = date_range(start="2014-07-04 15:00", periods=12, freq="bh")
952-
idx3 = date_range(end="2014-07-08 10:00", periods=12, freq="bh")
953-
expected = DatetimeIndex(
954-
[
955-
"2014-07-04 15:00",
956-
"2014-07-04 16:00",
957-
"2014-07-07 09:00",
958-
"2014-07-07 10:00",
959-
"2014-07-07 11:00",
960-
"2014-07-07 12:00",
961-
"2014-07-07 13:00",
962-
"2014-07-07 14:00",
963-
"2014-07-07 15:00",
964-
"2014-07-07 16:00",
965-
"2014-07-08 09:00",
966-
"2014-07-08 10:00",
967-
],
968-
freq="bh",
969-
)
970-
for idx in [idx1, idx2, idx3]:
971-
tm.assert_index_equal(idx, expected)
972-
973-
idx1 = date_range(start="2014-07-04 15:45", end="2014-07-08 10:45", freq="bh")
974-
idx2 = date_range(start="2014-07-04 15:45", periods=12, freq="bh")
975-
idx3 = date_range(end="2014-07-08 10:45", periods=12, freq="bh")
976-
977-
expected = idx1
978-
for idx in [idx1, idx2, idx3]:
979-
tm.assert_index_equal(idx, expected)
980-
981949
@pytest.mark.parametrize("td_unit", ["s", "ms", "us", "ns"])
982950
@pytest.mark.parametrize("unit", ["s", "ms", "us", "ns"])
983951
def test_bday_ignores_timedeltas(self, unit, td_unit):

0 commit comments

Comments
 (0)