-
-
Notifications
You must be signed in to change notification settings - Fork 481
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Trac #16746: Use the Sage displayhook in doctests
The doctests output should look like the Sage commandline output, which it currently does not quite. Differences include: * Dictionaries will be sorted by key, makes output more reproducable * Sets are printed as `{1,2}` instead of `set([1,2])` * Empty set is `set()` instead of `set([])` * Types are `<Foo at 0x...>` instead of `<Foo object at 0x...>` Other changes: * Normal tracebacks can now be distinguished from tracebacks in `__repr__` (IPython extension): {{{ sage: f(*args) <repr(<sage.interfaces.gap.GapElement at 0x...>) failed: ValueError: The session in which this object was defined is no longer running.> }}} * Plots now print themselves in doctest mode: {{{ sage: A.plot() Graphics object consisting of 1 graphics primitive }}} URL: http://trac.sagemath.org/16746 Reported by: vbraun Ticket author(s): Volker Braun Reviewer(s): François Bissey
- Loading branch information
Showing
318 changed files
with
4,440 additions
and
1,537 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.