diff options
author | Jarrod Millman <millman@berkeley.edu> | 2007-12-29 02:21:56 +0000 |
---|---|---|
committer | Jarrod Millman <millman@berkeley.edu> | 2007-12-29 02:21:56 +0000 |
commit | 72297ed57ac666c6ef50d5c88ef486a94f7fc080 (patch) | |
tree | 9ee064e4147d76e2b154e35103a7f46a6b3081c6 /numpy/lib/tests/test_polynomial.py | |
parent | 423b1953b1742a2b71cc766ff08a919707f19e1c (diff) | |
download | numpy-72297ed57ac666c6ef50d5c88ef486a94f7fc080.tar.gz |
more janitorial work
Diffstat (limited to 'numpy/lib/tests/test_polynomial.py')
-rw-r--r-- | numpy/lib/tests/test_polynomial.py | 8 |
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") |