-
-
Notifications
You must be signed in to change notification settings - Fork 512
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Running doctests from within Sage doesn't work #14290
Comments
Attachment: 14290.patch.gz |
comment:1
I couldn't figure out a way to doctest this fix (since the problem only occurred when running doctests from IPython), but it's ready for review. |
Author: David Roe |
Dependencies: #12415 |
Reviewer: Volker Braun |
comment:3
Positive review to your patch. I still think that it would be nice to have a note added to the diff that there were ansi escape sequences, since they don't get printed and you are otherwise just left with two identical strings which makes it non-obvious why the doctest failed. So I rescued that piece of the patch from #14359. |
comment:4
Your patch looks good too. |
This comment has been minimized.
This comment has been minimized.
comment:7
Agreed, I must have done something wrong. |
comment:8
Concerning escapes: on OS X 10.8 I am seeing
(where |
comment:9
That is not a color code but smm = "turn meta on". Most likely coming from readline if you have the wrong TERM set. I'll update the patch to generate better diagnostic for escape sequences. |
Updated patch |
comment:10
Attachment: trac_14290_ansi_escapes_indication.patch.gz The updated patch now makes all escape sequences visible (and doctestable):
|
comment:11
What does Also, are you sure want to mess with |
Merged: sage-5.9.beta2 |
This comment has been minimized.
This comment has been minimized.
comment:12
For the escape codes, see #14375. |
Running doctests from within Sage results in any test that has output failing. For example:
This is the result of IPython coloring the output.
Apply
Depends on #12415
Depends on #14331
Depends on #13278
Component: doctest framework
Author: David Roe
Reviewer: Volker Braun
Merged: sage-5.9.beta2
Issue created by migration from https://trac.sagemath.org/ticket/14290
The text was updated successfully, but these errors were encountered: