Skip to content

Commit

Permalink
Skip some doctests in sphinx docs (different output in py2 and py3)
Browse files Browse the repository at this point in the history
  • Loading branch information
skirpichev committed Oct 29, 2015
1 parent 98103e0 commit fd3268c
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
8 changes: 4 additions & 4 deletions doc/source/contexts.txt
Original file line number Diff line number Diff line change
Expand Up @@ -259,9 +259,9 @@ Although mpmath is generally designed for arbitrary-precision arithmetic, many o
To take advantage of this feature, simply use the ``fp`` prefix, i.e. write ``fp.func`` instead of ``func`` or ``mp.func``::

>>> u = fp.erfc(2.5)
>>> print(u)
>>> print(u) # doctest:+SKIP
0.000406952017445
>>> type(u)
>>> type(u) # doctest:+SKIP
<type 'float'>
>>> mp.dps = 15
>>> print(mp.erfc(2.5))
Expand All @@ -271,7 +271,7 @@ To take advantage of this feature, simply use the ``fp`` prefix, i.e. write ``fp
[['7.0', '10.0'],
['15.0', '22.0']])
>>>
>>> type(_[0,0])
>>> type(_[0,0]) # doctest:+SKIP
<type 'float'>
>>> print(fp.quad(fp.sin, [0, fp.pi])) # numerical integration
2.0
Expand All @@ -286,7 +286,7 @@ The ``fp`` context wraps Python's ``math`` and ``cmath`` modules for elementary
-0.5440211108893698
>>> fp.power(-1, 0.25)
(0.7071067811865476+0.7071067811865475j)
>>> (-1) ** 0.25
>>> (-1) ** 0.25 # doctest:+SKIP
Traceback (most recent call last):
...
ValueError: negative number cannot be raised to a fractional power
Expand Down
2 changes: 1 addition & 1 deletion doc/source/matrices.txt
Original file line number Diff line number Diff line change
Expand Up @@ -304,7 +304,7 @@ and methods::

>>> A = fp.matrix([[1, 2], [3, 4]])
>>> b = fp.matrix([-10, 10])
>>> fp.lu_solve(A, b)
>>> fp.lu_solve(A, b) # doctest:+SKIP
matrix(
[['30.0'],
['-20.0']])
Expand Down

0 comments on commit fd3268c

Please sign in to comment.