# [Scipy-svn] r6546 - trunk/scipy/special/tests

scipy-svn@scip... scipy-svn@scip...
Sun Jun 20 17:40:38 CDT 2010

Author: ptvirtan
Date: 2010-06-20 17:40:38 -0500 (Sun, 20 Jun 2010)
New Revision: 6546

Modified:
trunk/scipy/special/tests/test_mpmath.py
Log:
ENH: special: stick with the current convention for hyp2f1 a=c=negative integer, and enable a corresponding mpmath test

Modified: trunk/scipy/special/tests/test_mpmath.py
===================================================================
--- trunk/scipy/special/tests/test_mpmath.py	2010-06-20 17:52:12 UTC (rev 6545)
+++ trunk/scipy/special/tests/test_mpmath.py	2010-06-20 22:40:38 UTC (rev 6546)
@@ -52,15 +52,14 @@
# hyp2f1
#------------------------------------------------------------------------------

-@mpmath_check('0.12')
-@dec.knownfailureif(True,
-                    "Currently, special.hyp2f1 uses a *different* convention from mpmath and Mathematica for the cases a=c or b=c negative integers")
+@mpmath_check('0.14')
def test_hyp2f1_strange_points():
pts = [
-        (2,-1,-1,3),
-        (2,-2,-2,3),
+        (2,-1,-1,0.7),
+        (2,-2,-2,0.7),
]
-    dataset = [p + (float(mpmath.hyp2f1(*p)),) for p in pts]
+    kw = dict(eliminate=True)
+    dataset = [p + (float(mpmath.hyp2f1(*p, **kw)),) for p in pts]
dataset = np.array(dataset, dtype=np.float_)

FuncData(sc.hyp2f1, dataset, (0,1,2,3), 4, rtol=1e-10).check()