summaryrefslogtreecommitdiff
path: root/numpy/polynomial/tests/test_laguerre.py
diff options
context:
space:
mode:
Diffstat (limited to 'numpy/polynomial/tests/test_laguerre.py')
-rw-r--r--numpy/polynomial/tests/test_laguerre.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/numpy/polynomial/tests/test_laguerre.py b/numpy/polynomial/tests/test_laguerre.py
index b6e0376a2..915234b93 100644
--- a/numpy/polynomial/tests/test_laguerre.py
+++ b/numpy/polynomial/tests/test_laguerre.py
@@ -250,7 +250,7 @@ class TestIntegral(TestCase) :
tgt = pol[:]
for k in range(j) :
tgt = lag.lagint(tgt, m=1, k=[k])
- res = lag.lagint(pol, m=j, k=range(j))
+ res = lag.lagint(pol, m=j, k=list(range(j)))
assert_almost_equal(trim(res), trim(tgt))
# check multiple integrations with lbnd
@@ -260,7 +260,7 @@ class TestIntegral(TestCase) :
tgt = pol[:]
for k in range(j) :
tgt = lag.lagint(tgt, m=1, k=[k], lbnd=-1)
- res = lag.lagint(pol, m=j, k=range(j), lbnd=-1)
+ res = lag.lagint(pol, m=j, k=list(range(j)), lbnd=-1)
assert_almost_equal(trim(res), trim(tgt))
# check multiple integrations with scaling
@@ -270,7 +270,7 @@ class TestIntegral(TestCase) :
tgt = pol[:]
for k in range(j) :
tgt = lag.lagint(tgt, m=1, k=[k], scl=2)
- res = lag.lagint(pol, m=j, k=range(j), scl=2)
+ res = lag.lagint(pol, m=j, k=list(range(j)), scl=2)
assert_almost_equal(trim(res), trim(tgt))
def test_lagint_axis(self):