Commit a8e6299a authored by Vinzenz Feenstra's avatar Vinzenz Feenstra

Add unit test for bytearray + string concat

parent ce860949
assert(('abc' + bytearray('def')) == bytearray('abcdef'))
assert((bytearray('abc') + 'def') == bytearray('abcdef'))
try:
u'abc' + bytearray('def')
assert(False)
except TypeError:
pass
try:
bytearray('abc') + u'def'
assert(False)
except TypeError:
pass
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment