summaryrefslogtreecommitdiff
path: root/numpy
diff options
context:
space:
mode:
authorCharles Harris <charlesr.harris@gmail.com>2010-08-16 00:10:29 +0000
committerCharles Harris <charlesr.harris@gmail.com>2010-08-16 00:10:29 +0000
commit00b74ad6aa0931985580afcca692c89c411069ca (patch)
tree2ce3d168e17775959ba4aee79bbf7f75240d9252 /numpy
parente7c59e6a65041be003a4c840994de640167201ac (diff)
downloadnumpy-00b74ad6aa0931985580afcca692c89c411069ca.tar.gz
Merge branch 'poly'
Diffstat (limited to 'numpy')
-rw-r--r--numpy/polynomial/tests/test_chebyshev.py26
1 files changed, 13 insertions, 13 deletions
diff --git a/numpy/polynomial/tests/test_chebyshev.py b/numpy/polynomial/tests/test_chebyshev.py
index b80ff61de..ffa8e984d 100644
--- a/numpy/polynomial/tests/test_chebyshev.py
+++ b/numpy/polynomial/tests/test_chebyshev.py
@@ -347,34 +347,34 @@ class TestMisc(TestCase) :
def test_chebpts1(self):
#test exceptions
- yield assert_raises(ValueError, ch.chebpts1, 1.5)
- yield assert_raises(ValueError, ch.chebpts1, 0)
+ assert_raises(ValueError, ch.chebpts1, 1.5)
+ assert_raises(ValueError, ch.chebpts1, 0)
#test points
tgt = [0]
- yield assert_almost_equal(ch.chebpts1(1), tgt)
+ assert_almost_equal(ch.chebpts1(1), tgt)
tgt = [-0.70710678118654746, 0.70710678118654746]
- yield assert_almost_equal(ch.chebpts1(2), tgt)
+ assert_almost_equal(ch.chebpts1(2), tgt)
tgt = [-0.86602540378443871, 0, 0.86602540378443871]
- yield assert_almost_equal(ch.chebpts1(3), tgt)
+ assert_almost_equal(ch.chebpts1(3), tgt)
tgt = [-0.9238795325, -0.3826834323, 0.3826834323, 0.9238795325]
- yield assert_almost_equal(ch.chebpts1(4), tgt)
+ assert_almost_equal(ch.chebpts1(4), tgt)
def test_chebpts2(self):
#test exceptions
- yield assert_raises(ValueError, ch.chebpts2, 1.5)
- yield assert_raises(ValueError, ch.chebpts2, 1)
+ assert_raises(ValueError, ch.chebpts2, 1.5)
+ assert_raises(ValueError, ch.chebpts2, 1)
#test points
tgt = [-1, 1]
- yield assert_almost_equal(ch.chebpts2(2), tgt)
+ assert_almost_equal(ch.chebpts2(2), tgt)
tgt = [-1, 0, 1]
- yield assert_almost_equal(ch.chebpts2(3), tgt)
- tgt = [-1 -0.5, .5, 1]
- yield assert_almost_equal(ch.chebpts2(4), tgt)
+ assert_almost_equal(ch.chebpts2(3), tgt)
+ tgt = [-1, -0.5, .5, 1]
+ assert_almost_equal(ch.chebpts2(4), tgt)
tgt = [-1.0, -0.707106781187, 0, 0.707106781187, 1.0]
- yield assert_almost_equal(ch.chebpts2(5), tgt)
+ assert_almost_equal(ch.chebpts2(5), tgt)