Skip to content

Commit

Permalink
fine tuning the bad doctest
Browse files Browse the repository at this point in the history
  • Loading branch information
fchapoton committed Sep 12, 2024
1 parent 7824708 commit 7607de8
Showing 1 changed file with 4 additions and 6 deletions.
10 changes: 4 additions & 6 deletions src/sage/doctest/forker.py
Original file line number Diff line number Diff line change
Expand Up @@ -151,14 +151,12 @@ def init_sage(controller=None):
sage: s = sympify('+x^'.join(str(i) for i in range(30)))
sage: print(PrettyPrinter(settings={'wrap_line': True}).doprint(s))
29 28 27 26 25 24 23 22 21 20 19 18 17...
x + x + x + x + x + x + x + x + x + x + x + x + x +...
x + x + x + x + x + x + x + x + x + x + x + x + x...
<BLANKLINE>
...16 15 14 13 12 11 10 9 8 7 6 5 4 3...
...x + x + x + x + x + x + x + x + x + x + x + x + x + x +...
... 16 15 14 13 12 11 10 9 8 7 6 5 4 3...
...x + x + x + x + x + x + x + x + x + x + x + x + x + x...
<BLANKLINE>
...2
...x + x
...
The displayhook sorts dictionary keys to simplify doctesting of
dictionary output::
Expand Down

0 comments on commit 7607de8

Please sign in to comment.