diff options
author | Travis Oliphant <oliphant@enthought.com> | 2007-12-30 03:36:50 +0000 |
---|---|---|
committer | Travis Oliphant <oliphant@enthought.com> | 2007-12-30 03:36:50 +0000 |
commit | 50b26d2464f607566bf66986832636816eaa6d05 (patch) | |
tree | 33aa5156a0924423505fa77d0f4a4235b18e23ce /tests/test_polynomial.py | |
parent | 89d0310a07059f4b75aaaf6764326c97afdd1014 (diff) | |
download | numpy-50b26d2464f607566bf66986832636816eaa6d05.tar.gz |
Merge changes to the trunk to this branch.
Diffstat (limited to 'tests/test_polynomial.py')
-rw-r--r-- | tests/test_polynomial.py | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/tests/test_polynomial.py b/tests/test_polynomial.py index c9a230775..17d22e10e 100644 --- a/tests/test_polynomial.py +++ b/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") |