From a31d3c2375ffec7eb3754ab4b66f75ce9a51eddd Mon Sep 17 00:00:00 2001 From: RĂ©mi Flamary Date: Mon, 24 Jul 2017 14:35:20 +0200 Subject: map to list --- test/test_utils.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'test') diff --git a/test/test_utils.py b/test/test_utils.py index 1a1ab02..0883a8e 100644 --- a/test/test_utils.py +++ b/test/test_utils.py @@ -15,9 +15,9 @@ def test_parmap(): a = np.arange(n) - l1 = np.array(map(f, a)) + l1 = list(map(f, a)) - l2 = np.array(ot.utils.parmap(f, a)) + l2 = list(ot.utils.parmap(f, a)) assert np.allclose(l1, l2) -- cgit v1.2.3