diff options
author | Miss Islington (bot) <31488909+miss-islington@users.noreply.github.com> | 2024-04-21 18:10:15 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-04-21 18:10:15 (GMT) |
commit | 6d87cb494ba27ef5c2a4a59240a7ed792bb0bcce (patch) | |
tree | deca31a1ebe6ad807de0ac7a7bd37b59ad92ed54 /Doc | |
parent | e3671ead9419c7afab6a4e501ade86bc9bc10950 (diff) | |
download | cpython-6d87cb494ba27ef5c2a4a59240a7ed792bb0bcce.zip cpython-6d87cb494ba27ef5c2a4a59240a7ed792bb0bcce.tar.gz cpython-6d87cb494ba27ef5c2a4a59240a7ed792bb0bcce.tar.bz2 |
[3.12] Docs: replace Harry Potter reference with Monty Python (GH-118130) (#118135)
Docs: replace Harry Potter reference with Monty Python (GH-118130)
(cherry picked from commit 1446024124fb98c3051199760380685f8a2fd127)
Co-authored-by: Clément Robert <cr52@protonmail.com>
Diffstat (limited to 'Doc')
-rw-r--r-- | Doc/library/doctest.rst | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/Doc/library/doctest.rst b/Doc/library/doctest.rst index 9913309..694a43f 100644 --- a/Doc/library/doctest.rst +++ b/Doc/library/doctest.rst @@ -800,18 +800,18 @@ guarantee about output. For example, when printing a set, Python doesn't guarantee that the element is printed in any particular order, so a test like :: >>> foo() - {"Hermione", "Harry"} + {"spam", "eggs"} is vulnerable! One workaround is to do :: - >>> foo() == {"Hermione", "Harry"} + >>> foo() == {"spam", "eggs"} True instead. Another is to do :: >>> d = sorted(foo()) >>> d - ['Harry', 'Hermione'] + ['eggs', 'spam'] There are others, but you get the idea. |