8000 MAINT: Remove asunicode where a u prefix would suffice · juliantaylor/numpy@09a21de · GitHub
[go: up one dir, main page]

Skip to content

Commit 09a21de

Browse files
committed
MAINT: Remove asunicode where a u prefix would suffice
u prefixes are supported in Python 2.7 and 3.3+
1 parent 0960eed commit 09a21de

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

numpy/core/tests/test_numerictypes.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@
33
import sys
44

55
import numpy as np
6-
from numpy.compat import asunicode
76
from numpy.testing import (
87
TestCase, run_module_suite, assert_, assert_equal
98
)
@@ -63,8 +62,8 @@
6362
# x Info color info y z
6463
# value y2 Info2 name z2 Name Value
6564
# name value y3 z3
66-
([3, 2], (6j, 6., (b'nn', [6j, 4j], [6., 4.], [1, 2]), b'NN', True), b'cc', (asunicode('NN'), 6j), [[6., 4.], [6., 4.]], 8),
67-
([4, 3], (7j, 7., (b'oo', [7j, 5j], [7., 5.], [2, 1]), b'OO', False), b'dd', (asunicode('OO'), 7j), [[7., 5.], [7., 5.]], 9),
65+
([3, 2], (6j, 6., (b'nn', [6j, 4j], [6., 4.], [1, 2]), b'NN', True), b'cc', (u'NN', 6j), [[6., 4.], [6., 4.]], 8),
66+
([4, 3], (7j, 7., (b'oo', [7j, 5j], [7., 5.], [2, 1]), b'OO', False), b'dd', (u'OO', 7j), [[7., 5.], [7., 5.]], 9),
6867
]
6968

7069

0 commit comments

Comments
 (0)
0