-
-
Notifications
You must be signed in to change notification settings - Fork 528
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
sage-test doesn't handle all of sage-doctest's return values #7995
Comments
comment:2
Patch attached. In the future we may want to merge the sage-ptest and sage-test scripts entirely. They have a lot of duplicate code and minor unnecessary differences. |
Attachment: scripts_7995_sage-test_error_handling.patch.gz |
comment:3
I don't know much the doctest framework. But the code looks good, and this removes two seriously annoying misfeatures of doctests. Thanks so much for scratching this itch for me! Quick remarks:
|
comment:4
Sorry, I screwed up my citation. Here it is again.
|
comment:6
Thanks for the feedback. The As for the exception: you can get a traceback if you re-run with the -verbose. Do you think we should show them by default? |
comment:7
I attached a new patch to #7993 that changes the exit code comments. |
Author: Willem Jan Palenstijn |
comment:9
I played with this a bit and it works well. |
Reviewer: Alex Ghitza |
comment:10
Merged in the script repository. |
Merged: sage-4.3.2.alpha0 |
comment:12
I tested this, and it worked for me, as well as matching what the python docs say it does on unix systems. Does it not work on your system? The python docs for
And for
|
comment:13
See #8641 for a followup. |
comment:15
I put in a few print statements, like Dan did:
On my iMac running OS X 10.6, when I hit ctrl-C, I see
which looks okay. On sage.math, I see
which doesn't. |
The
sage-doctest
script returns some status info in its exit code, like if it was aborted with aKeyboardInterrupt
. Thesage-ptest
script interprets this information, butsage-test
mostly ignores it.One symptom is that Ctrl-C-ing a
sage -t
run of multiple files doesn't work.Component: doctest coverage
Author: Willem Jan Palenstijn
Reviewer: Alex Ghitza
Merged: sage-4.3.2.alpha0
Issue created by migration from https://trac.sagemath.org/ticket/7995
The text was updated successfully, but these errors were encountered: