Skip to content

Commit 4c337f5

Browse files
author
y-p
committed
TST: add test for _is_sequence()
1 parent d3c062b commit 4c337f5

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

pandas/tests/test_common.py

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,14 @@
1414

1515
from pandas.util import py3compat
1616

17+
def test_is_sequence():
18+
is_seq=com._is_sequence
19+
assert(is_seq((1,2)))
20+
assert(is_seq([1,2]))
21+
assert(not is_seq("abcd"))
22+
assert(not is_seq(u"abcd"))
23+
assert(not is_seq(np.int64))
24+
1725
def test_notnull():
1826
assert notnull(1.)
1927
assert not notnull(None)

0 commit comments

Comments
 (0)