Skip to content

Commit 13b7474

Browse files
committed
Test that we do not accept unicode
1 parent def1479 commit 13b7474

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

pandas/tests/test_lib.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,10 @@ def test_max_len_string_array(self):
1919
arr = arr.astype('U').astype(object)
2020
self.assertTrue(max_len_string_array(arr),3)
2121

22+
# raises
23+
tm.assertRaises(TypeError,
24+
lambda: max_len_string_array(arr.astype('U')))
25+
2226
class TestIsscalar(tm.TestCase):
2327
def test_isscalar_builtin_scalars(self):
2428
self.assertTrue(isscalar(None))

0 commit comments

Comments
 (0)