Skip to content

Commit b2f9e1f

Browse files
authored
TST: add test on checking objects to concatenate (pandas-dev#40822)
1 parent 8a5afc2 commit b2f9e1f

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

pandas/tests/reshape/concat/test_concat.py

+4
Original file line numberDiff line numberDiff line change
@@ -344,6 +344,10 @@ def test_concat_single_with_key(self):
344344
expected = concat([df, df], keys=["foo", "bar"])
345345
tm.assert_frame_equal(result, expected[:10])
346346

347+
def test_concat_no_items_raises(self):
348+
with pytest.raises(ValueError, match="No objects to concatenate"):
349+
concat([])
350+
347351
def test_concat_exclude_none(self):
348352
df = DataFrame(np.random.randn(10, 4))
349353

0 commit comments

Comments
 (0)