Skip to content

Commit 7913965

Browse files
committed
moving join test to common.py
1 parent 67edc79 commit 7913965

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

pandas/tests/indexes/common.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -937,3 +937,9 @@ def test_empty(self):
937937
index = self.create_index()
938938
assert not index.empty
939939
assert index[:0].empty
940+
941+
@pytest.mark.parametrize('how', ['outer', 'inner', 'left', 'right'])
942+
def test_join_self(self, how):
943+
index = self.create_index()
944+
joined = index.join(index, how=how)
945+
assert index is joined

pandas/tests/indexes/period/test_period.py

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -773,9 +773,3 @@ def test_map(self):
773773
result = index.map(lambda x: x.ordinal)
774774
exp = Index([x.ordinal for x in index])
775775
tm.assert_index_equal(result, exp)
776-
777-
@pytest.mark.parametrize('how', ['outer', 'inner', 'left', 'right'])
778-
def test_join_self(self, how):
779-
index = period_range('1/1/2000', periods=10)
780-
joined = index.join(index, how=how)
781-
assert index is joined

0 commit comments

Comments
 (0)