Skip to content

Commit c06d38f

Browse files
jmg7173proost
authored andcommitted
TST: Fix makeObjectSeries data as object type (pandas-dev#28444)
1 parent 49ddef9 commit c06d38f

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

pandas/tests/series/conftest.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ def string_series():
2626
@pytest.fixture
2727
def object_series():
2828
"""
29-
Fixture for Series of dtype datetime64[ns] with Index of unique strings
29+
Fixture for Series of dtype object with Index of unique strings
3030
"""
3131
s = tm.makeObjectSeries()
3232
s.name = "objects"

pandas/util/testing.py

+3-3
Original file line numberDiff line numberDiff line change
@@ -1854,10 +1854,10 @@ def makeStringSeries(name=None):
18541854

18551855

18561856
def makeObjectSeries(name=None):
1857-
dateIndex = makeDateIndex(N)
1858-
dateIndex = Index(dateIndex, dtype=object)
1857+
data = makeStringIndex(N)
1858+
data = Index(data, dtype=object)
18591859
index = makeStringIndex(N)
1860-
return Series(dateIndex, index=index, name=name)
1860+
return Series(data, index=index, name=name)
18611861

18621862

18631863
def getSeriesData():

0 commit comments

Comments
 (0)