Skip to content

Commit dd7e3cc

Browse files
author
y-p
committed
TST: add test for com.is_sequence
1 parent 1926b29 commit dd7e3cc

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

pandas/tests/test_common.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,11 @@ def test_is_sequence():
2626
assert(not is_seq(u"abcd"))
2727
assert(not is_seq(np.int64))
2828

29+
class A(object):
30+
def __getitem__(self):
31+
return 1
32+
33+
assert(not is_seq(A()))
2934

3035
def test_notnull():
3136
assert notnull(1.)

0 commit comments

Comments
 (0)