Skip to content
This repository was archived by the owner on Feb 1, 2023. It is now read-only.

Commit 6d35e3a

Browse files
author
Release Manager
committed
Trac #28619: Reference manual doesn't build with --include-tests-blocks
Blocks starting with `TESTS` are omitted, by default, in the reference manual, but can be included by passing `--include-tests-blocks` to `sage --docbuild`. The goal here is fix errors in the docstrings so that building with this option actually works. URL: https://trac.sagemath.org/28619 Reported by: jhpalmieri Ticket author(s): John Palmieri Reviewer(s): Frédéric Chapoton
2 parents 0bdecde + 441014a commit 6d35e3a

File tree

13 files changed

+36
-36
lines changed

13 files changed

+36
-36
lines changed

src/sage/algebras/group_algebra.py

Lines changed: 15 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -5,21 +5,21 @@
55
66
TESTS:
77
8-
Check that unpicking old group algebra classes work::
9-
10-
sage: G = loads(b"x\x9cM\xceM\n\xc20\x10\x86a\xac\xff\xf1$n\xb2\xf1\x04\x82"
11-
....: b"\xe8>\xe0:\xc4fL\x83i\xda\x99$K\xc1M\xf5\xdaj\x1a\xc1\xdd<"
12-
....: b"\xf0\xbd0\x8f\xaa\x0e\xca\x00\x0f\x91R\x1d\x13\x01O\xdeb\x02I"
13-
....: b"\xd0\x13\x04\xf0QE\xdby\x96<\x81N50\x9c\x8c\x81r\x06.\xa4\x027"
14-
....: b"\xd4\xa5^\x16\xb2\xd3W\xfb\x02\xac\x9a\xb2\xce\xa3\xc0{\xa0V"
15-
....: b"\x9ar\x8c\xa1W-hv\xb0\rhR.\xe7\x0c\xa7cE\xd6\x9b\xc0\xad\x8f`"
16-
....: b"\x80X\xabn \x7f\xc0\xd9y\xb2\x1b\x04\xce\x87\xfb\x0b\x17\x02"
17-
....: b"\x97\xff\x05\xe5\x9f\x95\x93W\x0bN3Qx\xcc\xc2\xd5V\xe0\xfa\xf9"
18-
....: b"\xc9\x98\xc0\r\x7f\x03\x9d\xd7^'")
19-
sage: G
20-
Algebra of Dihedral group of order 6 as a permutation group over Rational Field
21-
sage: type(G)
22-
<class 'sage.algebras.group_algebra.GroupAlgebra_class_with_category'>
8+
Check that unpicking old group algebra classes works::
9+
10+
sage: G = loads(b"x\x9cM\xceM\n\xc20\x10\x86a\xac\xff\xf1$n\xb2\xf1\x04\x82"
11+
....: b"\xe8>\xe0:\xc4fL\x83i\xda\x99$K\xc1M\xf5\xdaj\x1a\xc1\xdd<"
12+
....: b"\xf0\xbd0\x8f\xaa\x0e\xca\x00\x0f\x91R\x1d\x13\x01O\xdeb\x02I"
13+
....: b"\xd0\x13\x04\xf0QE\xdby\x96<\x81N50\x9c\x8c\x81r\x06.\xa4\x027"
14+
....: b"\xd4\xa5^\x16\xb2\xd3W\xfb\x02\xac\x9a\xb2\xce\xa3\xc0{\xa0V"
15+
....: b"\x9ar\x8c\xa1W-hv\xb0\rhR.\xe7\x0c\xa7cE\xd6\x9b\xc0\xad\x8f`"
16+
....: b"\x80X\xabn \x7f\xc0\xd9y\xb2\x1b\x04\xce\x87\xfb\x0b\x17\x02"
17+
....: b"\x97\xff\x05\xe5\x9f\x95\x93W\x0bN3Qx\xcc\xc2\xd5V\xe0\xfa\xf9"
18+
....: b"\xc9\x98\xc0\r\x7f\x03\x9d\xd7^'")
19+
sage: G
20+
Algebra of Dihedral group of order 6 as a permutation group over Rational Field
21+
sage: type(G)
22+
<class 'sage.algebras.group_algebra.GroupAlgebra_class_with_category'>
2323
"""
2424

2525
#*****************************************************************************

src/sage/coding/linear_code.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -349,7 +349,7 @@ class AbstractLinearCode(AbstractCode, Module):
349349
It is thus strongly recommended to set an encoder with a generator matrix implemented
350350
as a default encoder.
351351
352-
TESTS::
352+
TESTS:
353353
354354
This class uses the following experimental feature:
355355
:class:`sage.coding.relative_finite_field_extension.RelativeFiniteFieldExtension`.

src/sage/combinat/designs/difference_family.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1518,8 +1518,8 @@ def difference_family(v, k, l=1, existence=False, explain_construction=False, ch
15181518
...
15191519
NotImplementedError: No construction available for (9,3,1)-difference family
15201520
1521-
Check that when ``existence=True`` we always obtain ``True``, ``False`` or ``Unknown``
1522-
and when ``explain_construction=True``it is a string (see :trac:`24513`)::
1521+
Check that when ``existence=True`` we always obtain ``True``, ``False`` or ``Unknown``,
1522+
and when ``explain_construction=True``, it is a string (see :trac:`24513`)::
15231523
15241524
sage: designs.difference_family(3, 2, 1, existence=True)
15251525
True

src/sage/geometry/polyhedron/backend_cdd.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -412,7 +412,7 @@ class Polyhedron_RDF_cdd(Polyhedron_cdd, Polyhedron_RDF):
412412
413413
TESTS:
414414
415-
Checks that :ticket:`24877` is fixed::
415+
Checks that :trac:`24877` is fixed::
416416
417417
sage: n1 = 1045602428815736513789288687833080060779
418418
sage: n2 = 76591188009721216624438400001815308369088648782156930777145

src/sage/geometry/polyhedron/base.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4661,11 +4661,11 @@ def wedge(self, face, width=1):
46614661
46624662
For more information, see Chapter 15 of [HoDaCG17]_.
46634663
4664-
TESTS::
4664+
TESTS:
46654665
46664666
The backend should be preserved as long as the value of width permits.
46674667
The base_ring will change to the field of fractions of the current
4668-
base_ring, unless width forces a different ring.
4668+
base_ring, unless width forces a different ring. ::
46694669
46704670
sage: P = polytopes.cyclic_polytope(3,7, base_ring=ZZ, backend='field')
46714671
sage: W1 = P.wedge(P.faces(2)[0]); W1.base_ring(); W1.backend()
@@ -5938,7 +5938,7 @@ def _volume_latte(self, verbose=False, algorithm='triangulate', **kwargs):
59385938
sage: polytopes.cuboctahedron()._volume_latte() #optional - latte_int
59395939
20/3
59405940
5941-
TESTS::
5941+
TESTS:
59425942
59435943
Testing triangulate algorithm::
59445944
@@ -6303,7 +6303,7 @@ def integrate(self, polynomial, **kwds):
63036303
...
63046304
NotImplementedError: the polytope must be full-dimensional
63056305
6306-
TESTS::
6306+
TESTS:
63076307
63086308
Testing a three-dimensional integral::
63096309

src/sage/graphs/generators/families.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -632,7 +632,7 @@ def BarbellGraph(n1, n2):
632632
sage: P_n2.is_isomorphic(s_P)
633633
True
634634
635-
TESTS:
635+
TESTS::
636636
637637
sage: n1, n2 = randint(3, 10), randint(0, 10)
638638
sage: g = graphs.BarbellGraph(n1, n2)
@@ -709,7 +709,7 @@ def LollipopGraph(n1, n2):
709709
Lollipop graph: Graph on 17 vertices
710710
sage: g.show() # long time
711711
712-
TESTS:
712+
TESTS::
713713
714714
sage: n1, n2 = randint(3, 10), randint(0, 10)
715715
sage: g = graphs.LollipopGraph(n1, n2)
@@ -782,7 +782,7 @@ def TadpoleGraph(n1, n2):
782782
Tadpole graph: Graph on 17 vertices
783783
sage: g.show() # long time
784784
785-
TESTS:
785+
TESTS::
786786
787787
sage: n1, n2 = randint(3, 10), randint(0, 10)
788788
sage: g = graphs.TadpoleGraph(n1, n2)
@@ -875,7 +875,7 @@ def DipoleGraph(n):
875875
Dipole graph: Multi-graph on 2 vertices
876876
sage: g.show() # long time
877877
878-
TESTS:
878+
TESTS::
879879
880880
sage: n = randint(0, 10)
881881
sage: g = graphs.DipoleGraph(n)

src/sage/interfaces/latte.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -247,7 +247,7 @@ def integrate(arg, polynomial=None, algorithm='triangulate', raw_output=False, v
247247
sage: integrate(P.cdd_Hrepresentation(), '[[1,[2,2,2]]]', cdd=True) # optional - latte_int
248248
4096/27
249249
250-
TESTS::
250+
TESTS:
251251
252252
Testing raw output::
253253
@@ -399,7 +399,7 @@ def to_latte_polynomial(polynomial):
399399
400400
A string that describes the monomials list and exponent vectors.
401401
402-
TESTS::
402+
TESTS:
403403
404404
Testing a polynomial in three variables::
405405

src/sage/matrix/matrix_integer_dense.pyx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1224,7 +1224,7 @@ cdef class Matrix_integer_dense(Matrix_dense):
12241224
return self, ZZ(1)
12251225

12261226
def charpoly(self, var='x', algorithm=None):
1227-
"""
1227+
r"""
12281228
.. NOTE::
12291229
12301230
The characteristic polynomial is defined as `\det(xI-A)`.
@@ -1346,7 +1346,7 @@ cdef class Matrix_integer_dense(Matrix_dense):
13461346
return g
13471347

13481348
def minpoly(self, var='x', algorithm=None):
1349-
"""
1349+
r"""
13501350
INPUT:
13511351
13521352

src/sage/misc/cachefunc.pyx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1318,7 +1318,7 @@ cdef class WeakCachedFunction(CachedFunction):
13181318
sage: mod_ring(1,algorithm="default") is mod_ring(1,algorithm="algorithm") is mod_ring(1) is mod_ring(1,'default')
13191319
True
13201320
1321-
TESTS::
1321+
TESTS:
13221322
13231323
Check that :trac:`16316` has been fixed, i.e., caching works for
13241324
immutable unhashable objects which define

src/sage/modules/free_quadratic_module.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -123,7 +123,7 @@ def FreeQuadraticModule(
123123
sage: M3 is M2
124124
True
125125
126-
TESTS::
126+
TESTS:
127127
128128
Check for :trac:`10577`::
129129

0 commit comments

Comments
 (0)