Skip to content

Commit 9fe3a8e

Browse files
committed
add test for unicode elements: fails
This is currently failing.
1 parent 823c9ae commit 9fe3a8e

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

pandas/tests/series/test_constructors.py

+6-1
Original file line numberDiff line numberDiff line change
@@ -147,11 +147,16 @@ def test_constructor_single_element_string_type(self):
147147
result = pd.Series(13, index=[1], dtype=str)
148148
assert result.values.tolist() == ['13']
149149

150-
def test_constructor_string_series_string_type(self):
150+
def test_constructor_string_element_string_type(self):
151151
# GH 22477
152152
result = pd.Series('entry', index=[1], dtype=str)
153153
assert result.values.tolist() == ['entry']
154154

155+
def test_constructor_unicode_element_string_type(self):
156+
# GH 22477
157+
result = pd.Series(u'ѐ', index=[1], dtype=str)
158+
assert result.values.tolist() == [u'ѐ']
159+
155160
def test_constructor_dtype_str_na_values(self, string_dtype):
156161
# https://github.com/pandas-dev/pandas/issues/21083
157162
ser = Series(['x', None], dtype=string_dtype)

0 commit comments

Comments
 (0)