summaryrefslogtreecommitdiffstats
path: root/Doc/whatsnew/3.2.rst
diff options
context:
space:
mode:
authorMarco Buttu <marco.buttu@gmail.com>2017-04-27 12:23:34 (GMT)
committerBerker Peksag <berker.peksag@gmail.com>2017-04-27 12:23:34 (GMT)
commite65fcde85abf6617508f2d6b77020e24b8ca6f6b (patch)
tree8cc02a1cb4906417c52bf720c72a1de65ed56048 /Doc/whatsnew/3.2.rst
parent6fde770e4e940c19cd62de0b6aeb77840690843e (diff)
downloadcpython-e65fcde85abf6617508f2d6b77020e24b8ca6f6b.zip
cpython-e65fcde85abf6617508f2d6b77020e24b8ca6f6b.tar.gz
cpython-e65fcde85abf6617508f2d6b77020e24b8ca6f6b.tar.bz2
bpo-27200: Fix several doctests (GH-604)
Diffstat (limited to 'Doc/whatsnew/3.2.rst')
-rw-r--r--Doc/whatsnew/3.2.rst19
1 files changed, 11 insertions, 8 deletions
diff --git a/Doc/whatsnew/3.2.rst b/Doc/whatsnew/3.2.rst
index b900e77..78d3105 100644
--- a/Doc/whatsnew/3.2.rst
+++ b/Doc/whatsnew/3.2.rst
@@ -1062,13 +1062,16 @@ The :func:`~math.erf` function computes a probability integral or `Gaussian
error function <https://en.wikipedia.org/wiki/Error_function>`_. The
complementary error function, :func:`~math.erfc`, is ``1 - erf(x)``:
->>> from math import erf, erfc, sqrt
->>> erf(1.0/sqrt(2.0)) # portion of normal distribution within 1 standard deviation
-0.682689492137086
->>> erfc(1.0/sqrt(2.0)) # portion of normal distribution outside 1 standard deviation
-0.31731050786291404
->>> erf(1.0/sqrt(2.0)) + erfc(1.0/sqrt(2.0))
-1.0
+.. doctest::
+ :options: +SKIP
+
+ >>> from math import erf, erfc, sqrt
+ >>> erf(1.0/sqrt(2.0)) # portion of normal distribution within 1 standard deviation
+ 0.682689492137086
+ >>> erfc(1.0/sqrt(2.0)) # portion of normal distribution outside 1 standard deviation
+ 0.31731050786291404
+ >>> erf(1.0/sqrt(2.0)) + erfc(1.0/sqrt(2.0))
+ 1.0
The :func:`~math.gamma` function is a continuous extension of the factorial
function. See https://en.wikipedia.org/wiki/Gamma_function for details. Because
@@ -1384,7 +1387,7 @@ guaranteed not to block when :func:`select.select` says a pipe is ready
for writing.
>>> import select
->>> select.PIPE_BUF
+>>> select.PIPE_BUF # doctest: +SKIP
512
(Available on Unix systems. Patch by Sébastien Sablé in :issue:`9862`)