Skip to content

Commit

Permalink
Improve determinism in doctest for tools/vendored
Browse files Browse the repository at this point in the history
  • Loading branch information
abravalheri committed Apr 22, 2024
1 parent 86770ba commit 175787e
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions tools/vendored.py
Original file line number Diff line number Diff line change
Expand Up @@ -168,8 +168,9 @@ def update_setuptools():

def yield_root_package(name):
"""Useful when defining the MetaPathFinder
>>> set(yield_root_package("setuptools")) & {"jaraco", "backports"}
{'jaraco', 'backports'}
>>> examples = set(yield_root_package("setuptools")) & {"jaraco", "backports"}
>>> list(sorted(examples))
['backports', 'jaraco']
"""
vendored = Path(f"{name}/_vendor/vendored.txt")
yield from (
Expand Down

0 comments on commit 175787e

Please sign in to comment.