Skip to content

Commit 81ac496

Browse files
committed
test passed
1 parent de16d9d commit 81ac496

File tree

2 files changed

+3
-4
lines changed

2 files changed

+3
-4
lines changed

pandas/tests/indexes/multi/test_setops.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -627,7 +627,7 @@ def test_union_with_duplicates_keep_ea_dtype(dupe_val, any_numeric_ea_dtype):
627627
@pytest.mark.filterwarnings(r"ignore:PeriodDtype\[B\] is deprecated:FutureWarning")
628628
def test_union_duplicates(index, request):
629629
# special case for mixed types
630-
if index.equals(pd.Index([0, "a", 1, "b", 2, "c"])):
630+
if index.equals(Index([0, "a", 1, "b", 2, "c"])):
631631
index = index.map(str)
632632

633633
# GH#38977

pandas/tests/indexes/test_setops.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,6 @@
1313

1414
from pandas.core.dtypes.cast import find_common_type
1515

16-
import pandas as pd
1716
from pandas import (
1817
CategoricalDtype,
1918
CategoricalIndex,
@@ -242,7 +241,7 @@ def test_union_base(self, index):
242241
index = index.unique()
243242

244243
# Mixed int string
245-
if index.equals(pd.Index([0, "a", 1, "b", 2, "c"])):
244+
if index.equals(Index([0, "a", 1, "b", 2, "c"])):
246245
index = index.astype(str)
247246

248247
first = index[3:]
@@ -311,7 +310,7 @@ def test_symmetric_difference(self, index, using_infer_string, request):
311310
# index fixture has e.g. an index of bools that does not satisfy this,
312311
# another with [0, 0, 1, 1, 2, 2]
313312
pytest.skip("Index values no not satisfy test condition.")
314-
if index.equals(pd.Index([0, "a", 1, "b", 2, "c"])):
313+
if index.equals(Index([0, "a", 1, "b", 2, "c"])):
315314
index = index.astype(str)
316315
first = index[1:]
317316
second = index[:-1]

0 commit comments

Comments
 (0)