Skip to content

Commit 175787e

Browse files
committed
Improve determinism in doctest for tools/vendored
1 parent 86770ba commit 175787e

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

tools/vendored.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -168,8 +168,9 @@ def update_setuptools():
168168

169169
def yield_root_package(name):
170170
"""Useful when defining the MetaPathFinder
171-
>>> set(yield_root_package("setuptools")) & {"jaraco", "backports"}
172-
{'jaraco', 'backports'}
171+
>>> examples = set(yield_root_package("setuptools")) & {"jaraco", "backports"}
172+
>>> list(sorted(examples))
173+
['backports', 'jaraco']
173174
"""
174175
vendored = Path(f"{name}/_vendor/vendored.txt")
175176
yield from (

0 commit comments

Comments
 (0)