diff options
author | Clément Robert <cr52@protonmail.com> | 2024-04-21 18:03:46 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-04-21 18:03:46 (GMT) |
commit | 1446024124fb98c3051199760380685f8a2fd127 (patch) | |
tree | 4762b212e644e5ed367d0ec91c486b96fe05b030 | |
parent | 51ef89cd9acbfbfa7fd8d82f0c6baa388bb650c9 (diff) | |
download | cpython-1446024124fb98c3051199760380685f8a2fd127.zip cpython-1446024124fb98c3051199760380685f8a2fd127.tar.gz cpython-1446024124fb98c3051199760380685f8a2fd127.tar.bz2 |
Docs: replace Harry Potter reference with Monty Python (#118130)
-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 a643a0e..5f7d10a 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. |