Skip to content

Commit 7322f67

Browse files
committed
Add dtype of expected result in testcase
1 parent d49cbc0 commit 7322f67

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Diff for: pandas/tests/indexes/period/test_setops.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -372,5 +372,5 @@ def test_difference_periodindex_with_index(self):
372372
tm.assert_index_equal(result1, expected1)
373373

374374
result2 = index2.difference(index1)
375-
expected2 = pd.Index([])
375+
expected2 = pd.Index([], dtype=index2.dtype)
376376
tm.assert_index_equal(result2, expected2)

0 commit comments

Comments
 (0)