On Monday, January 27, 2020 at 4:51:28 PM UTC-8, David Roe wrote: > > > What about having another special doctest comment like "# sort-keys" that > makes the doctest framework sort the keys before printing? This could be > then implemented in one of the above ways in the doctest code. > David > That would require the doctest framework to parse the comment before running the doctest and setting a displayhook before, so that the sorted output can be generated. It still requires us to supply the display hook.
I don't know if in the current setup it's easy to modify the doctest environment before running the test, based on comments in the doctest (I don't think it's an option to process the doctest output on string-level after it's been produced . That just sounds like a fragile nightmare). If so, it's an option to selectively activate the hook. -- You received this message because you are subscribed to the Google Groups "sage-devel" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/sage-devel/9bf8b07e-98b8-44cd-8b37-2e51ba9ed735%40googlegroups.com.
