Skip to content

Commit 823c9ae

Browse files
committed
add test for strings
1 parent e4eb011 commit 823c9ae

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

pandas/tests/series/test_constructors.py

+5
Original file line numberDiff line numberDiff line change
@@ -147,6 +147,11 @@ 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):
151+
# GH 22477
152+
result = pd.Series('entry', index=[1], dtype=str)
153+
assert result.values.tolist() == ['entry']
154+
150155
def test_constructor_dtype_str_na_values(self, string_dtype):
151156
# https://github.com/pandas-dev/pandas/issues/21083
152157
ser = Series(['x', None], dtype=string_dtype)

0 commit comments

Comments
 (0)