Skip to content

Commit a4dec6f

Browse files
author
tp
committed
Merge branches
2 parents 00ec1ca + d94d652 commit a4dec6f

File tree

1 file changed

+7
-4
lines changed

1 file changed

+7
-4
lines changed

pandas/tests/reshape/test_concat.py

+7-4
Original file line numberDiff line numberDiff line change
@@ -834,13 +834,14 @@ def test_append_preserve_index_name(self):
834834
@pytest.mark.parametrize("df_columns", [
835835
pd.RangeIndex(3),
836836
pd.CategoricalIndex('A B C'.split()),
837+
pd.CategoricalIndex('A B C'.split(), ordered=True),
837838
pd.MultiIndex.from_arrays(['A B C'.split(), 'D E F'.split()]),
838839
pd.IntervalIndex.from_breaks([0, 1, 2, 3]),
839840
pd.DatetimeIndex([dt.datetime(2013, 1, 3, 0, 0),
840841
dt.datetime(2013, 1, 3, 6, 10),
841842
dt.datetime(2013, 1, 3, 7, 12)]),
842843
pd.Index([1, 2, 3]),
843-
])
844+
], ids=lambda x: str(x.dtype))
844845
def test_append_same_columns_type(self, df_columns):
845846
# GH18359
846847

@@ -873,7 +874,7 @@ def test_append_same_columns_type(self, df_columns):
873874
pd.DatetimeIndex([dt.datetime(2013, 1, 3, 0, 0),
874875
dt.datetime(2013, 1, 3, 6, 10),
875876
dt.datetime(2013, 1, 3, 7, 12)]),
876-
], r=2))
877+
], r=2), ids=lambda x: str(x.dtype))
877878
def test_append_different_columns_types(self, df_columns, series_index):
878879
# GH18359
879880
# see also tests 'test_append_multi_index_raises' and
@@ -895,12 +896,13 @@ def test_append_different_columns_types(self, df_columns, series_index):
895896
@pytest.mark.parametrize("other_type", [
896897
pd.RangeIndex(3),
897898
pd.CategoricalIndex('A B C'.split()),
899+
pd.CategoricalIndex('A B C'.split(), ordered=True),
898900
pd.IntervalIndex.from_breaks([0, 1, 2, 3]),
899901
pd.DatetimeIndex([dt.datetime(2013, 1, 3, 0, 0),
900902
dt.datetime(2013, 1, 3, 6, 10),
901903
dt.datetime(2013, 1, 3, 7, 12)]),
902904
pd.Index([4, 5, 6]),
903-
])
905+
], ids=lambda x: str(x.dtype))
904906
def test_append_multi_index_raises(self, other_type):
905907
# GH18359
906908
# .append will raise if MultiIndex appends or is appended to a
@@ -923,12 +925,13 @@ def test_append_multi_index_raises(self, other_type):
923925
@pytest.mark.parametrize("other_type", [
924926
pd.RangeIndex(3),
925927
pd.CategoricalIndex('A B C'.split()),
928+
pd.CategoricalIndex('A B C'.split(), ordered=True),
926929
pd.MultiIndex.from_arrays(['A B C'.split(), 'D E F'.split()]),
927930
pd.DatetimeIndex([dt.datetime(2013, 1, 3, 0, 0),
928931
dt.datetime(2013, 1, 3, 6, 10),
929932
dt.datetime(2013, 1, 3, 7, 12)]),
930933
pd.Index([4, 5, 6]),
931-
])
934+
], ids=lambda x: str(x.dtype))
932935
def test_append_interval_index_raises(self, other_type):
933936
# GH18359
934937
# .append will raise if IntervalIndex appends or is appended to a

0 commit comments

Comments
 (0)