Skip to content

Commit

Permalink
Change test for 22721
Browse files Browse the repository at this point in the history
  • Loading branch information
h-vetinari committed Sep 17, 2018
1 parent bb91b3e commit 87b815b
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions pandas/tests/test_strings.py
Original file line number Diff line number Diff line change
Expand Up @@ -3088,7 +3088,11 @@ def test_str_accessor_no_new_attributes(self):
def test_method_on_bytes(self):
lhs = Series(np.array(list('abc'), 'S1').astype(object))
rhs = Series(np.array(list('def'), 'S1').astype(object))
if compat.PY3:
pytest.raises(TypeError, lhs.str.cat, rhs, sep=',')
else:
result = lhs.str.cat(rhs)
expected = Series(np.array(
['ad', 'be', 'cf'], 'S2').astype(object))
tm.assert_series_equal(result, expected)

result = lhs.str.cat(rhs)
expected = Series(np.array(['ad', 'be', 'cf'], 'S2').astype(object))
tm.assert_series_equal(result, expected)

0 comments on commit 87b815b

Please sign in to comment.