summaryrefslogtreecommitdiff
path: root/numpy/lib/tests/test_polynomial.py
diff options
context:
space:
mode:
Diffstat (limited to 'numpy/lib/tests/test_polynomial.py')
-rw-r--r--numpy/lib/tests/test_polynomial.py8
1 files changed, 4 insertions, 4 deletions
diff --git a/numpy/lib/tests/test_polynomial.py b/numpy/lib/tests/test_polynomial.py
index c9a230775..17d22e10e 100644
--- a/numpy/lib/tests/test_polynomial.py
+++ b/numpy/lib/tests/test_polynomial.py
@@ -74,22 +74,22 @@ poly1d([ 2.])
"""
from numpy.testing import *
-import numpy as N
+import numpy as np
class TestDocs(NumpyTestCase):
def check_doctests(self): return self.rundocs()
def check_roots(self):
- assert_array_equal(N.roots([1,0,0]), [0,0])
+ assert_array_equal(np.roots([1,0,0]), [0,0])
def check_str_leading_zeros(self):
- p = N.poly1d([4,3,2,1])
+ p = np.poly1d([4,3,2,1])
p[3] = 0
assert_equal(str(p),
" 2\n"
"3 x + 2 x + 1")
- p = N.poly1d([1,2])
+ p = np.poly1d([1,2])
p[0] = 0
p[1] = 0
assert_equal(str(p), " \n0")