Skip to content

Commit 86c9159

Browse files
committed
Adjust tests
1 parent 88a78a6 commit 86c9159

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

pandas/tests/series/accessors/test_dt_accessor.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -256,7 +256,7 @@ def test_dt_accessor_limited_display_api(self):
256256
tm.assert_almost_equal(results, sorted(set(ok_for_dt + ok_for_dt_methods)))
257257

258258
# Period
259-
idx = period_range("20130101", periods=5, freq="D", name="xxx").astype(object)
259+
idx = period_range("20130101", periods=5, freq="D", name="xxx")
260260
ser = Series(idx)
261261
results = get_dir(ser)
262262
tm.assert_almost_equal(

pandas/tests/series/test_constructors.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1319,7 +1319,7 @@ def test_constructor_periodindex(self):
13191319
s = Series(pi)
13201320
assert s.dtype == "Period[D]"
13211321
expected = Series(pi.astype(object))
1322-
tm.assert_series_equal(s, expected)
1322+
assert expected.dtype == object
13231323

13241324
def test_constructor_dict(self):
13251325
d = {"a": 0.0, "b": 1.0, "c": 2.0}

0 commit comments

Comments
 (0)