Skip to content

Commit faa0e0b

Browse files
committed
TST: split up test_concat.py pandas-dev#37243
* reverted changes to test_series.py
1 parent ad7a7c6 commit faa0e0b

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

pandas/tests/reshape/concat/test_series.py

+7-2
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,12 @@
1515
import pandas._testing as tm
1616

1717

18+
@pytest.fixture(params=[True, False])
19+
def sort(request):
20+
"""Boolean sort keyword for concat and DataFrame.append."""
21+
return request.param
22+
23+
1824
class TestSeriesConcat:
1925
def test_concat_series(self):
2026

@@ -46,7 +52,7 @@ def test_concat_empty_and_non_empty_series_regression(self):
4652
result = pd.concat([s1, s2])
4753
tm.assert_series_equal(result, expected)
4854

49-
def test_concat_series_axis1(self, sort=True):
55+
def test_concat_series_axis1(self, sort=sort):
5056
ts = tm.makeTimeSeries()
5157

5258
pieces = [ts[:-2], ts[2:], ts[2:-2]]
@@ -76,7 +82,6 @@ def test_concat_series_axis1(self, sort=True):
7682
s2 = Series(randn(4), index=["d", "a", "b", "c"], name="B")
7783
result = concat([s, s2], axis=1, sort=sort)
7884
expected = DataFrame({"A": s, "B": s2})
79-
8085
tm.assert_frame_equal(result, expected)
8186

8287
def test_concat_series_axis1_names_applied(self):

0 commit comments

Comments
 (0)