summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorRémi Flamary <remi.flamary@gmail.com>2017-07-24 14:35:20 +0200
committerRémi Flamary <remi.flamary@gmail.com>2017-07-24 14:35:20 +0200
commita31d3c2375ffec7eb3754ab4b66f75ce9a51eddd (patch)
treed650ea7d1388032bd8065cd19a9d95686a8fed84 /test
parentc6e648fbebd1297428f514d7bd48d3eb8814aafd (diff)
map to list
Diffstat (limited to 'test')
-rw-r--r--test/test_utils.py4
1 files changed, 2 insertions, 2 deletions
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)