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

Commit

Permalink
Make SR doctests optional in sage.tensor.modules (#32712)
Browse files Browse the repository at this point in the history
  • Loading branch information
egourgoulhon committed Oct 18, 2021
1 parent 1635bd3 commit c3ff514
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 12 deletions.
6 changes: 3 additions & 3 deletions src/sage/tensor/modules/comp.py
Original file line number Diff line number Diff line change
Expand Up @@ -1168,9 +1168,9 @@ def display(self, symbol, latex_symbol=None, index_positions=None,
Check that the bug reported in :trac:`22520` is fixed::
sage: c = Components(SR, [1, 2], 1)
sage: c[0] = SR.var('t', domain='real')
sage: c.display('c')
sage: c = Components(SR, [1, 2], 1) # optional - sage.symbolic
sage: c[0] = SR.var('t', domain='real') # optional - sage.symbolic
sage: c.display('c') # optional - sage.symbolic
c_0 = t
"""
Expand Down
10 changes: 5 additions & 5 deletions src/sage/tensor/modules/free_module_alt_form.py
Original file line number Diff line number Diff line change
Expand Up @@ -554,11 +554,11 @@ def display(self, basis=None, format_spec=None):
Check that the bug reported in :trac:`22520` is fixed::
sage: M = FiniteRankFreeModule(SR, 2, name='M')
sage: e = M.basis('e')
sage: a = M.alternating_form(2)
sage: a[0,1] = SR.var('t', domain='real')
sage: a.display()
sage: M = FiniteRankFreeModule(SR, 2, name='M') # optional - sage.symbolic
sage: e = M.basis('e') # optional - sage.symbolic
sage: a = M.alternating_form(2) # optional - sage.symbolic
sage: a[0,1] = SR.var('t', domain='real') # optional - sage.symbolic
sage: a.display() # optional - sage.symbolic
t e^0∧e^1
"""
Expand Down
8 changes: 4 additions & 4 deletions src/sage/tensor/modules/free_module_tensor.py
Original file line number Diff line number Diff line change
Expand Up @@ -687,10 +687,10 @@ def display(self, basis=None, format_spec=None):
Check that the bug reported in :trac:`22520` is fixed::
sage: M = FiniteRankFreeModule(SR, 3, name='M')
sage: e = M.basis('e')
sage: t = SR.var('t', domain='real')
sage: (t*e[0]).display()
sage: M = FiniteRankFreeModule(SR, 3, name='M') # optional - sage.symbolic
sage: e = M.basis('e') # optional - sage.symbolic
sage: t = SR.var('t', domain='real') # optional - sage.symbolic
sage: (t*e[0]).display() # optional - sage.symbolic
t e_0
"""
Expand Down

0 comments on commit c3ff514

Please sign in to comment.