summaryrefslogtreecommitdiff
path: root/numpy/polynomial/tests/test_polynomial.py
diff options
context:
space:
mode:
authorCharles Harris <charlesr.harris@gmail.com>2013-03-28 07:10:01 -0700
committerCharles Harris <charlesr.harris@gmail.com>2013-03-28 07:10:01 -0700
commit40742184df68fc01f3392c9865f35d5402e74b01 (patch)
tree4d4832417a28e128ed989fc273d322a551d1cfdb /numpy/polynomial/tests/test_polynomial.py
parentdb75eb44a31fe1bb04a0f673fd459614bfd02b85 (diff)
parentb995d00e2e54bc6ff97f21bd179d1fc4dc3c92cb (diff)
downloadnumpy-40742184df68fc01f3392c9865f35d5402e74b01.tar.gz
Merge pull request #3122 from charris/2to3-apply-xrange-fixer
2to3: Replace xrange by range and use list(range(...)) where needed
Diffstat (limited to 'numpy/polynomial/tests/test_polynomial.py')
-rw-r--r--numpy/polynomial/tests/test_polynomial.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/numpy/polynomial/tests/test_polynomial.py b/numpy/polynomial/tests/test_polynomial.py
index bd09c07f6..e8268d25f 100644
--- a/numpy/polynomial/tests/test_polynomial.py
+++ b/numpy/polynomial/tests/test_polynomial.py
@@ -253,7 +253,7 @@ class TestIntegral(TestCase):
tgt = pol[:]
for k in range(j) :
tgt = poly.polyint(tgt, m=1, k=[k])
- res = poly.polyint(pol, m=j, k=range(j))
+ res = poly.polyint(pol, m=j, k=list(range(j)))
assert_almost_equal(trim(res), trim(tgt))
# check multiple integrations with lbnd
@@ -263,7 +263,7 @@ class TestIntegral(TestCase):
tgt = pol[:]
for k in range(j) :
tgt = poly.polyint(tgt, m=1, k=[k], lbnd=-1)
- res = poly.polyint(pol, m=j, k=range(j), lbnd=-1)
+ res = poly.polyint(pol, m=j, k=list(range(j)), lbnd=-1)
assert_almost_equal(trim(res), trim(tgt))
# check multiple integrations with scaling
@@ -273,7 +273,7 @@ class TestIntegral(TestCase):
tgt = pol[:]
for k in range(j) :
tgt = poly.polyint(tgt, m=1, k=[k], scl=2)
- res = poly.polyint(pol, m=j, k=range(j), scl=2)
+ res = poly.polyint(pol, m=j, k=list(range(j)), scl=2)
assert_almost_equal(trim(res), trim(tgt))
def test_polyint_axis(self):