From bb70738f14caaa1bfd2478af283dd101d6931f17 Mon Sep 17 00:00:00 2001 From: Charles Harris Date: Sun, 13 Mar 2011 19:38:54 -0600 Subject: ENH: Rename test_trimdeg to test_cutdeg to match method and add ability to run as script. --- numpy/polynomial/tests/test_polynomial.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'numpy/polynomial/tests/test_polynomial.py') diff --git a/numpy/polynomial/tests/test_polynomial.py b/numpy/polynomial/tests/test_polynomial.py index 5890ac13f..4b93ea118 100644 --- a/numpy/polynomial/tests/test_polynomial.py +++ b/numpy/polynomial/tests/test_polynomial.py @@ -400,7 +400,7 @@ class TestPolynomialClass(TestCase) : def test_degree(self) : assert_equal(self.p1.degree(), 2) - def test_trimdeg(self) : + def test_cutdeg(self) : assert_raises(ValueError, self.p1.cutdeg, .5) assert_raises(ValueError, self.p1.cutdeg, -1) assert_equal(len(self.p1.cutdeg(3)), 3) @@ -502,3 +502,7 @@ class TestPolynomialClass(TestCase) : assert_almost_equal(p(x), x) p = poly.Polynomial.identity([1,3]) assert_almost_equal(p(x), x) +# + +if __name__ == "__main__": + run_module_suite() -- cgit v1.2.1