gh-77024: test.support: Improve documentation#92513
gh-77024: test.support: Improve documentation#92513JelleZijlstra merged 6 commits intopython:mainfrom
Conversation
This is a rework of python#5774 on current main. I was a bit more conservative in making changes than the original PR. See @csabella's comments on issue python#77024 and the discussion on python#5774 for explanations of several of the changes. Co-authored-by: Cheryl Sabella <cheryl.sabella@gmail.com>
AlexWaygood
left a comment
There was a problem hiding this comment.
Thanks, this looks like a big improvement! A few notes:
| Set to a filename containing the :data:`FS_NONASCII` character, if it exists. | ||
| This guarantees that if the filename exists, it can be encoded and decoded | ||
| with the default filesystem encoding. This allows tests that require a | ||
| non-ASCII filename to be easily skipped on platforms where they can't work. |
There was a problem hiding this comment.
This currently feels like it leads with the implementation, and finishes with why it's useful ("This allows tests that require a non-ASCII filename to be easily skipped on platforms where they can't work"). The other way around might be better.
There was a problem hiding this comment.
I see your point, but I feel like the current sequence is more in line with the surrounding TESTFN_* paragraphs.
Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com>
|
Thanks for your review @AlexWaygood! |
AlexWaygood
left a comment
There was a problem hiding this comment.
Just two more nits I spotted, otherwise looks great!
Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com>
|
Thanks @JelleZijlstra for the PR 🌮🎉.. I'm working now to backport this PR to: 3.10, 3.11. |
|
GH-93291 is a backport of this pull request to the 3.11 branch. |
This is a rework of pythonGH-5774 on current main. I was a bit more conservative in making changes than the original PR. See @csabella's comments on issue pythonGH-77024 and the discussion on pythonGH-5774 for explanations of several of the changes. Co-authored-by: Cheryl Sabella <cheryl.sabella@gmail.com> Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com> (cherry picked from commit 8995177) Co-authored-by: Jelle Zijlstra <jelle.zijlstra@gmail.com>
This is a rework of pythonGH-5774 on current main. I was a bit more conservative in making changes than the original PR. See @csabella's comments on issue pythonGH-77024 and the discussion on pythonGH-5774 for explanations of several of the changes. Co-authored-by: Cheryl Sabella <cheryl.sabella@gmail.com> Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com> (cherry picked from commit 8995177) Co-authored-by: Jelle Zijlstra <jelle.zijlstra@gmail.com>
This is a rework of GH-5774 on current main. I was a bit more conservative in making changes than the original PR. See @csabella's comments on issue GH-77024 and the discussion on GH-5774 for explanations of several of the changes. Co-authored-by: Cheryl Sabella <cheryl.sabella@gmail.com> Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com> (cherry picked from commit 8995177) Co-authored-by: Jelle Zijlstra <jelle.zijlstra@gmail.com>
This is a rework of GH-5774 on current main. I was a bit more conservative in making changes than the original PR. See @csabella's comments on issue GH-77024 and the discussion on GH-5774 for explanations of several of the changes. Co-authored-by: Cheryl Sabella <cheryl.sabella@gmail.com> Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com> (cherry picked from commit 8995177) Co-authored-by: Jelle Zijlstra <jelle.zijlstra@gmail.com>
This is a rework of #5774 on current main. I was a bit more
conservative in making changes than the original PR.
See @csabella's comments on issue #77024 and the discussion
on #5774 for explanations of several of the changes.
Co-authored-by: Cheryl Sabella cheryl.sabella@gmail.com