-
-
Notifications
You must be signed in to change notification settings - Fork 523
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
Add Unicode support to the doctesting framework #14153
Comments
This comment has been minimized.
This comment has been minimized.
comment:2
Attachment: doctest_unicode.patch.gz |
comment:3
I just tried this patch on the suspicion it could help with the test weirdness I reported in 5.9.beta0 on sage-release
The R error was fixed by unsetting R_HOME before running the test. Then I applied the patch and here is the result
|
Branch: public/14153 |
comment:11
just made a branch from the old patch, not tried to test it New commits:
|
Commit: |
comment:13
I have repaired a detail, but this is not working, in several distinct ways. This seems to be broken on lines having unicode characters in comments such as:
Some doctests come from the notebook, I made a pull request. A failing doctest in src/sage/misc/rest_index_of_methods.py |
comment:14
seems that something like that is hurting us (in forker):
solution: encode ?
|
Branch pushed to git repo; I updated commit sha1. New commits:
|
comment:62
not sure at all that this is a good solution.. |
comment:63
Interesting. It's not clear to me where |
comment:64
see the section I think this explain what GAP does when its doc is required as a text. |
comment:65
Great, that should explain it then. Hmm--maybe rather than forcing |
Branch pushed to git repo; I updated commit sha1. New commits:
|
comment:67
indeed, here is a try.. |
comment:69
bot seems to be stable-green, please review |
comment:70
ping ? Jeroen ? Erik ? |
comment:71
Can you replace the unconditional except: with something more sensible? Probably just name = str(name) instead of the entire try/except + assertion. Rest lgtm |
comment:73
Thanks Volker for having a look. I have made a more precise except. I guess one could also have removed the try-except. |
comment:74
bot is morally green |
Changed reviewer from Erik Bray to Erik Bray, Volker Bruan, David Roe |
comment:75
Looks good. Sorry that this review took so long! |
Changed reviewer from Erik Bray, Volker Bruan, David Roe to Erik Bray, Volker Braun, David Roe |
comment:77
Sorry for the typo Volker! |
Changed branch from u/chapoton/14153v2 to |
Support
sage:
) lines containing non-ASCII characters.see also #18370
CC: @nexttime @embray @jdemeyer @hivert
Component: doctest framework
Keywords: unicode
Author: Frédéric Chapoton
Branch/Commit:
ed1e3b5
Reviewer: Erik Bray, Volker Braun, David Roe
Issue created by migration from https://trac.sagemath.org/ticket/14153
The text was updated successfully, but these errors were encountered: