]> granicus.if.org Git - python/commitdiff
math.fsum docs did not show up because of a misplaced testsetup directive
authorŁukasz Langa <lukasz@langa.pl>
Fri, 18 Jan 2013 12:31:53 +0000 (13:31 +0100)
committerŁukasz Langa <lukasz@langa.pl>
Fri, 18 Jan 2013 12:31:53 +0000 (13:31 +0100)
Doc/library/math.rst

index 57d776243523feeedb0fd7c245398ab79ed77fb0..1df48fc572e1f58458306c09a0835ffe2c2a36f7 100644 (file)
@@ -5,6 +5,9 @@
 .. module:: math
    :synopsis: Mathematical functions (sin() etc.).
 
+.. testsetup::
+
+   from math import fsum
 
 This module is always available.  It provides access to the mathematical
 functions defined by the C standard.
@@ -82,8 +85,6 @@ Number-theoretic and representation functions
 
 
 .. function:: fsum(iterable)
-.. testsetup::
-        >>> from math import fsum
 
    Return an accurate floating point sum of values in the iterable.  Avoids
    loss of precision by tracking multiple intermediate partial sums::