Skip to content

Commit

Permalink
Fix 'variable only defined' doctest warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
mkoeppe committed Aug 13, 2023
1 parent 819967a commit ccc9dcb
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion src/sage/misc/c3_controlled.pyx
Original file line number Diff line number Diff line change
Expand Up @@ -1100,7 +1100,7 @@ class HierarchyElement(object, metaclass=ClasscallMetaclass):
"""
EXAMPLES::
sage: # needs sage.combinat sage.graphs
sage: # needs sage.graphs
sage: from sage.misc.c3_controlled import HierarchyElement
sage: P = Poset((divisors(30), lambda x, y: y.divides(x)), facade=True)
sage: x = HierarchyElement(10, P)
Expand Down
6 changes: 3 additions & 3 deletions src/sage/repl/interpreter.py
Original file line number Diff line number Diff line change
Expand Up @@ -554,10 +554,10 @@ def preparse_imports_from_sage(self, line):
Since :trac:`28439`, this also works with more complicated expressions
containing nested parentheses::
sage: # needs sage.libs.gap
sage: shell = interface_shell_embed(gap) # needs sage.symbolic
sage: # needs sage.libs.gap sage.symbolic
sage: shell = interface_shell_embed(gap)
sage: shell.user_ns = locals()
sage: ift = InterfaceShellTransformer(shell=shell, config=shell.config, # needs sage.symbolic
sage: ift = InterfaceShellTransformer(shell=shell, config=shell.config,
....: prefilter_manager=shell.prefilter_manager)
sage: line = '2 + sage((1+2)*gap(-(5-3)^2).sage()) - gap(1+(2-1))'
sage: line = ift.preparse_imports_from_sage(line)
Expand Down

0 comments on commit ccc9dcb

Please sign in to comment.