Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 722bc4e

Browse filesBrowse files
committed
DOC: replace Harry Potter reference with Star Wars
1 parent d8f3503 commit 722bc4e
Copy full SHA for 722bc4e

File tree

Expand file treeCollapse file tree

1 file changed

+3
-3
lines changed
Filter options
Expand file treeCollapse file tree

1 file changed

+3
-3
lines changed

‎Doc/library/doctest.rst

Copy file name to clipboardExpand all lines: Doc/library/doctest.rst
+3-3Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -800,18 +800,18 @@ guarantee about output. For example, when printing a set, Python doesn't
800800
guarantee that the element is printed in any particular order, so a test like ::
801801

802802
>>> foo()
803-
{"Hermione", "Harry"}
803+
{"Luke", "Leia"}
804804

805805
is vulnerable! One workaround is to do ::
806806

807-
>>> foo() == {"Hermione", "Harry"}
807+
>>> foo() == {"Leia", "Luke"}
808808
True
809809

810810
instead. Another is to do ::
811811

812812
>>> d = sorted(foo())
813813
>>> d
814-
['Harry', 'Hermione']
814+
['Leia', 'Luke']
815815

816816
There are others, but you get the idea.
817817

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.