summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorpatto90 <andrea.pattori@gmail.com>2019-07-14 10:30:43 -0500
committerpatto90 <andrea.pattori@gmail.com>2019-07-14 10:30:43 -0500
commita3f631a59fea34e44b2cca2b5ea234e56aff4645 (patch)
tree9ca865a99f0333fa23ca9e71c81d2d9efda28f0d
parentb7d56364ca473e9c5a88f90ed0c6ae188b4f1389 (diff)
downloadnumpy-a3f631a59fea34e44b2cca2b5ea234e56aff4645.tar.gz
TST: hit the deprecationwarning
-rw-r--r--numpy/polynomial/tests/test_polynomial.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/numpy/polynomial/tests/test_polynomial.py b/numpy/polynomial/tests/test_polynomial.py
index 08b73da15..1436963c6 100644
--- a/numpy/polynomial/tests/test_polynomial.py
+++ b/numpy/polynomial/tests/test_polynomial.py
@@ -9,7 +9,7 @@ import numpy as np
import numpy.polynomial.polynomial as poly
from numpy.testing import (
assert_almost_equal, assert_raises, assert_equal, assert_,
- assert_array_equal)
+ assert_warns, assert_array_equal)
def trim(x):
@@ -297,6 +297,8 @@ class TestIntegral(object):
assert_raises(ValueError, poly.polyint, [0], lbnd=[0])
assert_raises(ValueError, poly.polyint, [0], scl=[0])
assert_raises(TypeError, poly.polyint, [0], axis=.5)
+ with assert_warns(DeprecationWarning):
+ poly.polyint([1, 1], 1.)
# test integration of zero polynomial
for i in range(2, 5):