@@ -78,9 +78,9 @@ def build(self, obj, baseline=None):
7878
7979 EXAMPLES::
8080
81- sage: result = ascii_art(integral(exp(x+x^2)/(x+1), x)) # needs sage.symbolic
81+ sage: result = ascii_art(integral(exp(x+x^2)/(x+1), x))
8282 ...
83- sage: result # needs sage.symbolic
83+ sage: result
8484 /
8585 |
8686 | 2
@@ -93,14 +93,14 @@ def build(self, obj, baseline=None):
9393
9494 TESTS::
9595
96- sage: n = var('n') # needs sage.symbolic
97- sage: ascii_art(sum(binomial(2 * n, n + 1) * x^n, n, 0, oo)) # needs sage.symbolic
96+ sage: n = var('n')
97+ sage: ascii_art(sum(binomial(2 * n, n + 1) * x^n, n, 0, oo))
9898 / _________ \
9999 -\2*x + \/ 1 - 4*x - 1/
100100 -------------------------
101101 _________
102102 2*x*\/ 1 - 4*x
103- sage: ascii_art(list(DyckWords(3))) # needs sage.combinat
103+ sage: ascii_art(list(DyckWords(3)))
104104 [ /\ ]
105105 [ /\ /\ /\/\ / \ ]
106106 [ /\/\/\, /\/ \, / \/\, / \, / \ ]
@@ -150,10 +150,10 @@ def build_from_magic_method(self, obj, baseline=None):
150150 EXAMPLES::
151151
152152 sage: from sage.typeset.ascii_art import _ascii_art_factory as factory
153- sage: out = factory.build_from_magic_method(identity_matrix(2)); out # needs sage.modules
153+ sage: out = factory.build_from_magic_method(identity_matrix(2)); out
154154 [1 0]
155155 [0 1]
156- sage: type(out) # needs sage.modules
156+ sage: type(out)
157157 <class 'sage.typeset.ascii_art.AsciiArt'>
158158 """
159159 magic_method = getattr (obj , self .magic_method_name )
@@ -228,12 +228,12 @@ def build_container(self, content, left_border, right_border, baseline=0):
228228
229229 TESTS::
230230
231- sage: l = ascii_art(list(DyckWords(3))) # indirect doctest # needs sage.combinat
232- sage: l # needs sage.combinat
231+ sage: l = ascii_art(list(DyckWords(3))) # indirect doctest
232+ sage: l
233233 [ /\ ]
234234 [ /\ /\ /\/\ / \ ]
235235 [ /\/\/\, /\/ \, / \/\, / \, / \ ]
236- sage: l._breakpoints # needs sage.combinat
236+ sage: l._breakpoints
237237 [9, 17, 25, 33]
238238
239239 Check that zero-height strings are handled (:issue:`28527`)::
@@ -274,7 +274,7 @@ def build_set(self, s, baseline=0):
274274 iteration over sets is non-deterministic so too is the results of this
275275 test::
276276
277- sage: ascii_art(set(DyckWords(3))) # indirect doctest random # needs sage.combinat
277+ sage: ascii_art(set(DyckWords(3))) # indirect doctest random
278278 { /\ }
279279 { /\ /\/\ /\ / \ }
280280 { / \/\, / \, /\/\/\, /\/ \, / \ }
@@ -283,7 +283,7 @@ def build_set(self, s, baseline=0):
283283 a set, but still obtain the same output formatting::
284284
285285 sage: from sage.typeset.ascii_art import _ascii_art_factory as factory
286- sage: factory.build_set(sorted(set(DyckWords(3)))) # needs sage.combinat
286+ sage: factory.build_set(sorted(set(DyckWords(3))))
287287 { /\ }
288288 { /\ /\ /\/\ / \ }
289289 { /\/\/\, /\/ \, / \/\, / \, / \ }
@@ -300,7 +300,6 @@ def build_dict(self, d, baseline=0):
300300
301301 TESTS::
302302
303- sage: # needs sage.combinat
304303 sage: from collections import OrderedDict
305304 sage: d = OrderedDict(enumerate(DyckWords(3)))
306305 sage: art = ascii_art(d) # indirect doctest
@@ -343,18 +342,18 @@ def build_list(self, l, baseline=0):
343342
344343 TESTS::
345344
346- sage: l = ascii_art(list(DyckWords(3))) # indirect doctest # needs sage.combinat
347- sage: l # needs sage.combinat
345+ sage: l = ascii_art(list(DyckWords(3))) # indirect doctest
346+ sage: l
348347 [ /\ ]
349348 [ /\ /\ /\/\ / \ ]
350349 [ /\/\/\, /\/ \, / \/\, / \, / \ ]
351- sage: l._breakpoints # needs sage.combinat
350+ sage: l._breakpoints
352351 [9, 17, 25, 33]
353352
354353 The breakpoints of the object are used as breakpoints::
355354
356- sage: l = ascii_art([DyckWords(2).list(), DyckWords(2).list()]) # needs sage.combinat
357- sage: l._breakpoints # needs sage.combinat
355+ sage: l = ascii_art([DyckWords(2).list(), DyckWords(2).list()])
356+ sage: l._breakpoints
358357 [(2, [7]), 17, (18, [7])]
359358
360359 The parentheses only stretch as high as the content (:issue:`28527`)::
@@ -385,7 +384,7 @@ def build_tuple(self, t, baseline=0):
385384
386385 TESTS::
387386
388- sage: ascii_art(tuple(DyckWords(3))) # indirect doctest # needs sage.combinat
387+ sage: ascii_art(tuple(DyckWords(3))) # indirect doctest
389388 ( /\ )
390389 ( /\ /\ /\/\ / \ )
391390 ( /\/\/\, /\/ \, / \/\, / \, / \ )
@@ -426,8 +425,8 @@ def concatenate(self, iterable, separator, empty=None, baseline=0,
426425
427426 EXAMPLES::
428427
429- sage: i2 = identity_matrix(2) # needs sage.modules
430- sage: ascii_art(i2, i2, i2, sep=ascii_art(1/x)) # needs sage.modules sage.symbolic
428+ sage: i2 = identity_matrix(2)
429+ sage: ascii_art(i2, i2, i2, sep=ascii_art(1/x))
431430 1 1
432431 [1 0]-[1 0]-[1 0]
433432 [0 1]x[0 1]x[0 1]
0 commit comments