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
Restore doctesting of non-library files #12704
Comments
comment:1
Attachment: trac_12704-doctest_non-library_files.patch.gz The one-line patch solves the problem. |
Author: Francis Clarke |
comment:2
I think this is a duplicate of #12069. |
comment:3
Replying to @jhpalmieri:
Indeed, it is; it should be closed. Sorry for missing #12069, which does a more thorough job. Perhaps it should be added to #11337. |
Reviewer: Francis Clarke |
Changed author from Francis Clarke to none |
Since #9739, it has not been possible to doctest non-library files (if, as is likely, they contain definitions which get tested). This is because in
sage-doctest
the same name is used for:SAGE_TESTDIR
(a copy of, or a preparsed version of, the file being tested), andAs a result, the first file is overwritten by the second, and then loads itself. Thus definitions from the original file are not available to the doctests.
CC: @jhpalmieri
Component: doctest coverage
Reviewer: Francis Clarke
Issue created by migration from https://trac.sagemath.org/ticket/12704
The text was updated successfully, but these errors were encountered: