Skip to content

Commit 3b55364

Browse files
authored
TST: pytest.mark.single for test_unique_bad_unicode (#43526)
1 parent 663185e commit 3b55364

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

pandas/tests/base/test_unique.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -115,12 +115,12 @@ def test_nunique_null(null_obj, index_or_series_obj):
115115
assert obj.nunique(dropna=False) == max(0, num_unique_values)
116116

117117

118-
@pytest.mark.parametrize(
119-
"idx_or_series_w_bad_unicode", [pd.Index(["\ud83d"] * 2), pd.Series(["\ud83d"] * 2)]
120-
)
121-
def test_unique_bad_unicode(idx_or_series_w_bad_unicode):
118+
@pytest.mark.single
119+
def test_unique_bad_unicode(index_or_series):
122120
# regression test for #34550
123-
obj = idx_or_series_w_bad_unicode
121+
uval = "\ud83d" # smiley emoji
122+
123+
obj = index_or_series([uval] * 2)
124124
result = obj.unique()
125125

126126
if isinstance(obj, pd.Index):

0 commit comments

Comments
 (0)