Reduce doctest precision
Display trailing newline in __repr__() output
TEST Trac #16746: Use the Sage displayhook in doctests