Skip to content

Commit edb3293

Browse files
committed
py27 test compat
1 parent 1be757a commit edb3293

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

numcodecs/tests/test_vlen_utf8.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -80,9 +80,9 @@ def test_decode_errors():
8080

8181

8282
def test_encode_utf8():
83-
a = np.array(['foo', None, 'bar'], dtype=object)
83+
a = np.array([u'foo', None, u'bar'], dtype=object)
8484
codec = VLenUTF8()
8585
enc = codec.encode(a)
8686
dec = codec.decode(enc)
87-
expect = np.array(['foo', '', 'bar'], dtype=object)
87+
expect = np.array([u'foo', u'', u'bar'], dtype=object)
8888
assert_array_items_equal(expect, dec)

0 commit comments

Comments
 (0)