Closed gilch closed 1 year ago
And somehow missed some highlighting failures. Sometimes I have to delete the Sphinx build directory before I get a true doc build. Looks like these are cases where a traceback occurred at read time, preventing the PythonConsoleLexer from being applied due to the lack of any Python prompt.
Improved the syntax highlighting in the docs. Moved another example.
I also modified
spy#
andtime#
so they can take an Extra file argument. This is because doctests can't handle stderr (only tracebacks). I considered patching with the mock library, which did work. I also considered just using stdout, but I do feel that stderr is a better default. Being able to change the print file makes the macros slightly more useful but is this bloat? The changes were super small and easy with the current extra system though. Test-induced design damage? I kind of did something similar to prelude when I allowed it to take an ns argument. This seems fine.