Skip to content

Commit

Permalink
TST: add test on checking objects to concatenate (pandas-dev#40822)
Browse files Browse the repository at this point in the history
  • Loading branch information
ivanovmg authored Apr 8, 2021
1 parent 8a5afc2 commit b2f9e1f
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions pandas/tests/reshape/concat/test_concat.py
Original file line number Diff line number Diff line change
Expand Up @@ -344,6 +344,10 @@ def test_concat_single_with_key(self):
expected = concat([df, df], keys=["foo", "bar"])
tm.assert_frame_equal(result, expected[:10])

def test_concat_no_items_raises(self):
with pytest.raises(ValueError, match="No objects to concatenate"):
concat([])

def test_concat_exclude_none(self):
df = DataFrame(np.random.randn(10, 4))

Expand Down

0 comments on commit b2f9e1f

Please sign in to comment.