bpo-11015: Update test.support documentation#5610
Conversation
|
Thank you! I'm going to go ahead and merge this version - if we find potential points of clarification in particular entries, this PR may still be a good place to comment on that, or else folks can just submit their own PRs directly. I'll also flag the change for backport to 3.7, but will leave 3.6 alone for now (as I believe some of these APIs don't exist on that branch). |
(cherry picked from commit 988fb28) Co-authored-by: Cheryl Sabella <cheryl.sabella@gmail.com>
|
GH-5619 is a backport of this pull request to the 3.7 branch. |
| possible to generate such a filename. | ||
|
|
||
|
|
||
| .. data:: TESTFN_NONASCII |
There was a problem hiding this comment.
It is not clear the difference between TESTFN_UNICODE and TESTFN_NONASCII.
|
|
||
| .. data:: PGO | ||
|
|
||
| Set when tests can be skipped when they are not useful for PGO. |
There was a problem hiding this comment.
Set to what value? I suppose this is a boolean value which is True on PGO build and False otherwise.
| to make writes blocking. | ||
|
|
||
|
|
||
| .. data:: TEST_SUPPORT_DIR |
| Set to :data:`sys.maxsize` for big memory tests. | ||
|
|
||
|
|
||
| .. data:: max_memuse |
|
|
||
| .. data:: MISSING_C_DOCSTRINGS | ||
|
|
||
| Return ``True`` if running on CPython, not on Windows, and configuration |
There was a problem hiding this comment.
Not return. This isn't a function, but a boolean constant.
|
|
||
| .. class:: SaveSignals() | ||
|
|
||
| Class to save and restore signal handlers registered by the Python signal |
| handler. | ||
|
|
||
|
|
||
| .. class:: Matcher() |
There was a problem hiding this comment.
This class is used only in test_logging, and only with TestHandler. These classes should be documented together and with references to logging. I'm not sure they should be in test.support.
| :func:`check_warnings` above for more details. | ||
|
|
||
|
|
||
| .. class:: BasicTestRunner() |
There was a problem hiding this comment.
This is an internal class used for implementing run_unittest(). No need to expose it.
| Run *test* and return the result. | ||
|
|
||
|
|
||
| .. class:: TestHandler(logging.handlers.BufferingHandler) |
There was a problem hiding this comment.
How to use it?
I'm not sure it should be in test.support rather of test_logging.
| variables *env_vars* succeeds (``rc == 0``) and return a ``(return code, | ||
| stdout, stderr)`` tuple. | ||
|
|
||
| If the ``__cleanenv`` keyword is set, *env_vars* is used as a fresh |
There was a problem hiding this comment.
Since this is a keyword argument name, it should be formatter as *__cleanenv*.
https://bugs.python.org/issue11015