Skip to content

Commit 288234f

Browse files
committed
math.fsum docs did not show up because of a misplaced testsetup directive
1 parent b24d0d9 commit 288234f

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

Doc/library/math.rst

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,9 @@
44
.. module:: math
55
:synopsis: Mathematical functions (sin() etc.).
66

7+
.. testsetup::
8+
9+
from math import fsum
710

811
This module is always available. It provides access to the mathematical
912
functions defined by the C standard.
@@ -77,8 +80,6 @@ Number-theoretic and representation functions
7780

7881

7982
.. function:: fsum(iterable)
80-
.. testsetup::
81-
>>> from math import fsum
8283

8384
Return an accurate floating point sum of values in the iterable. Avoids
8485
loss of precision by tracking multiple intermediate partial sums::

0 commit comments

Comments
 (0)