Ticket #9808: trac_9808_numpy_doctest_change.patch

File trac_9808_numpy_doctest_change.patch, 2.7 KB (added by maldun, 11 years ago)

Changed doctests for numpy-1.5.0 due to output changes in numpy

  • doc/en/faq/faq-usage.rst

    # HG changeset patch
    # User maldun <domors@gmx.net>
    # Date 1286737128 -7200
    # Node ID 87f1a6dec250e1fe191a97843b6a428dcca43bf3
    # Parent  7ae7b5175304fea5b08c9ee313c372a3936baa1e
    Trac 9808: Cahnged doctests due output changes in numpy.
    Inf changed to inf. Some deprication warnings were removed,
    others were added.
    
    diff -r 7ae7b5175304 -r 87f1a6dec250 doc/en/faq/faq-usage.rst
    a b  
    339339    sage: RealNumber = float; Integer = int
    340340    sage: from scipy import stats
    341341    sage: stats.ttest_ind(list([1,2,3,4,5]),list([2,3,4,5,.6]))
    342     doctest...DeprecationWarning...
    343342    (0.076752955645333687, 0.94070490247380478)
    344343    sage: stats.uniform(0,15).ppf([0.5,0.7])
    345344    array([  7.5,  10.5])
  • sage/functions/hyperbolic.py

    diff -r 7ae7b5175304 -r 87f1a6dec250 sage/functions/hyperbolic.py
    a b  
    607607            sage: import numpy
    608608            sage: a = numpy.linspace(0,1,3)
    609609            sage: arcsech(a)
    610             array([       Inf,  1.3169579,  0.       ])
     610            array([       inf,  1.3169579,  0.       ])
    611611        """
    612612        return arccosh(1.0 / x)
    613613
     
    656656            sage: import numpy
    657657            sage: a = numpy.linspace(0,1,3)
    658658            sage: arccsch(a)
    659             array([        Inf,  1.44363548,  0.88137359])
     659            array([        inf,  1.44363548,  0.88137359])
    660660        """
    661661        return arcsinh(1.0 / x)
    662662
  • sage/matrix/matrix_double_dense.pyx

    diff -r 7ae7b5175304 -r 87f1a6dec250 sage/matrix/matrix_double_dense.pyx
    a b  
    15231523            [51.9689561987  74.736564567]
    15241524            [112.104846851 164.073803049]
    15251525            sage: A.exp(method='eig')
     1526            doctest:94: ComplexWarning: Casting complex values to real discards the imaginary part
    15261527            [51.9689561987  74.736564567]
    15271528            [112.104846851 164.073803049]
    15281529            sage: A.exp(order=2)
  • sage/symbolic/function.pyx

    diff -r 7ae7b5175304 -r 87f1a6dec250 sage/symbolic/function.pyx
    a b  
    609609            sage: import numpy
    610610            sage: a = numpy.arange(5)
    611611            sage: csc(a)
    612             array([        Inf,  1.18839511,  1.09975017,  7.0861674 , -1.32134871])
     612            array([        inf,  1.18839511,  1.09975017,  7.0861674 , -1.32134871])
    613613
    614614            sage: factorial(a)
    615615            Traceback (most recent call last):