-
-
Notifications
You must be signed in to change notification settings - Fork 419
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
Fix hiding of TESTS in documentation #27896
Comments
Commit: |
comment:1
Apparently,
This commit adds special handling of New commits:
|
Author: Markus Wageringel |
comment:2
There is one pyflakes warning about an unused import of
Removing the import makes the doctest of the corresponding function fail. There is also a patchbot warning about insertion of triple colons. I am not sure what the intent of that warning is, but since I am using them in a regular expression, I guess that the warning is irrelevant. Otherwise, |
comment:3
Is a single colon valid reST? Can we change the end of I suppose ideally, we would match a string of colons with matching text on the previous line, to make sure it really was a header, but we don't want to write a reST parser to solve this problem. |
comment:4
A reST header can have length 1 and can even look like this:
This is indeed interpreted as header by Sphinx. If we disallow single colons nevertheless, this should also apply to the other characters. I agree that ideally the line containing the header text should be taken into account, but it seems like a solution covering all the cases would add quite a bit of complexity for something that has not been a problem so far. |
Reviewer: John Palmieri |
comment:5
Fine. |
Changed branch from u/gh-mwageringel/docs/tests_block to |
comment:7
Not in Sage 8.8. Let's please to try keep tickets' milestones related to the release in which we actually intend to include them, and in particular the release in which they were actually included, especially when closing tickets. |
The function
sage.misc.sagedoc.skip_TESTS_block
is responsible for hiding TESTS blocks from the documentation, but the case below is not correctly handled. As a result, all the tests below the line::
are not hidden from the documentation.This seems to be a common pattern for writing tests. For an actual example, check the end of the output of
ideal?
for instance, also available here.Component: documentation
Author: Markus Wageringel
Branch/Commit:
4d0badd
Reviewer: John Palmieri
Issue created by migration from https://trac.sagemath.org/ticket/27896
The text was updated successfully, but these errors were encountered: