Skip to content

Commit 4d7a7c2

Browse files
author
Roger Thomas
committed
Add Error Tests
1 parent aa5339f commit 4d7a7c2

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

pandas/tests/series/test_analytics.py

+3-1
Original file line numberDiff line numberDiff line change
@@ -1667,7 +1667,9 @@ class TestNLargestNSmallest(object):
16671667
Series([3., 2, 1, 2, 5], dtype='object'),
16681668
# not supported on some archs
16691669
# Series([3., 2, 1, 2, 5], dtype='complex256'),
1670-
Series([3., 2, 1, 2, 5], dtype='complex128')])
1670+
Series([3., 2, 1, 2, 5], dtype='complex128'),
1671+
Series(list('abcde'), dtype='category'),
1672+
Series(list('abcde'))])
16711673
def test_error(self, r):
16721674
dt = r.dtype
16731675
msg = "Cannot use method 'n(larg|small)est' with dtype %s" % dt

0 commit comments

Comments
 (0)