Skip to content

Commit 7287eaf

Browse files
authored
TST: Refactor slow test (#53610)
1 parent 3a33710 commit 7287eaf

File tree

1 file changed

+3
-5
lines changed

1 file changed

+3
-5
lines changed

pandas/tests/test_algos.py

+3-5
Original file line numberDiff line numberDiff line change
@@ -536,11 +536,9 @@ def test_objects(self):
536536
assert isinstance(result, np.ndarray)
537537

538538
def test_object_refcount_bug(self):
539-
lst = ["A", "B", "C", "D", "E"]
540-
msg = "unique with argument that is not not a Series"
541-
with tm.assert_produces_warning(FutureWarning, match=msg):
542-
for i in range(1000):
543-
len(algos.unique(lst))
539+
lst = np.array(["A", "B", "C", "D", "E"], dtype=object)
540+
for i in range(1000):
541+
len(algos.unique(lst))
544542

545543
def test_on_index_object(self):
546544
mindex = MultiIndex.from_arrays(

0 commit comments

Comments
 (0)