Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 4dfde8b

Browse files
jnothmanogrisel
authored andcommitted
FIX No set construction shorthand in Py2.6
1 parent f18a07a commit 4dfde8b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

sklearn/preprocessing/tests/test_label.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -260,8 +260,8 @@ def test_mutlilabel_binarizer():
260260
# test input as iterable of iterables
261261
inputs = [
262262
lambda: [(2, 3), (1,), (1, 2)],
263-
lambda: ({2, 3}, {1}, {1, 2}),
264-
lambda: iter([iter((2, 3)), iter((1,)), {1, 2}]),
263+
lambda: (set([2, 3]), set([1]), set([1, 2])),
264+
lambda: iter([iter((2, 3)), iter((1,)), set([1, 2])]),
265265
]
266266
indicator_mat = np.array([[0, 1, 1],
267267
[1, 0, 0],

0 commit comments

Comments
 (0)