Skip to content
This repository has been archived by the owner on Jan 30, 2023. It is now read-only.

Commit

Permalink
doctests: remove dochtml label from some tests that don't need docs i…
Browse files Browse the repository at this point in the history
…nstalled
  • Loading branch information
tornaria committed Dec 26, 2021
1 parent a8973f2 commit 7d3381b
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
4 changes: 2 additions & 2 deletions src/sage/docs/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -719,8 +719,8 @@ def call_intersphinx(app, env, node, contnode):
Check that the link from the thematic tutorials to the reference
manual is relative, see :trac:`20118`::
sage: from sage.env import SAGE_DOC # optional - dochtml
sage: thematic_index = os.path.join(SAGE_DOC, "html", "en", "thematic_tutorials", "index.html") # optional - dochtml
sage: from sage.env import SAGE_DOC
sage: thematic_index = os.path.join(SAGE_DOC, "html", "en", "thematic_tutorials", "index.html")
sage: for line in open(thematic_index).readlines(): # optional - dochtml
....: if "padics" in line:
....: _ = sys.stdout.write(line)
Expand Down
12 changes: 6 additions & 6 deletions src/sage/misc/sagedoc.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,8 @@
Check that argspecs of extension function/methods appear correctly,
see :trac:`12849`::
sage: from sage.env import SAGE_DOC # optional - dochtml
sage: docfilename = os.path.join(SAGE_DOC, 'html', 'en', 'reference', 'calculus', 'sage', 'symbolic', 'expression.html') # optional - dochtml
sage: from sage.env import SAGE_DOC
sage: docfilename = os.path.join(SAGE_DOC, 'html', 'en', 'reference', 'calculus', 'sage', 'symbolic', 'expression.html')
sage: with open(docfilename) as fobj: # optional - dochtml
....: for line in fobj:
....: if "#sage.symbolic.expression.Expression.numerical_approx" in line:
Expand Down Expand Up @@ -839,12 +839,12 @@ def _search_src_or_doc(what, string, extra1='', extra2='', extra3='',
::
sage: from sage.misc.sagedoc import _search_src_or_doc # optional - dochtml
sage: len(_search_src_or_doc('src', r'matrix\(', 'incidence_structures', 'self', 'combinat', interact=False).splitlines()) > 1 # optional - dochtml
sage: from sage.misc.sagedoc import _search_src_or_doc
sage: len(_search_src_or_doc('src', r'matrix\(', 'incidence_structures', 'self', 'combinat', interact=False).splitlines()) > 1
True
sage: 'abvar/homology' in _search_src_or_doc('doc', 'homology', 'variety', interact=False) # optional - dochtml, long time (4s on sage.math, 2012)
True
sage: 'divisors' in _search_src_or_doc('src', '^ *def prime', interact=False) # optional - dochtml
sage: 'divisors' in _search_src_or_doc('src', '^ *def prime', interact=False)
True
When passing ``interactive=True``, in a terminal session this will pass the
Expand Down Expand Up @@ -1363,7 +1363,7 @@ class _sage_doc:
sage: browse_sage_doc._open("reference", testing=True)[0] # optional - dochtml, indirect doctest
'http://localhost:8000/doc/live/reference/index.html'
sage: browse_sage_doc(identity_matrix, 'rst')[-107:-47] # optional - dochtml
sage: browse_sage_doc(identity_matrix, 'rst')[-107:-47]
'Full MatrixSpace of 3 by 3 sparse matrices over Integer Ring'
"""
def __init__(self):
Expand Down

0 comments on commit 7d3381b

Please sign in to comment.