8000 Merge commit 'f545a8f' into maint/3.8.x · python/importlib_metadata@99f83cf · GitHub
[go: up one dir, main page]

Skip to content

Commit 99f83cf

Browse files
committed
Merge commit 'f545a8f' into maint/3.8.x
2 parents d91dd25 + f545a8f commit 99f83cf

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed

tests/test_integration.py

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77
Distribution,
88
MetadataPathFinder,
99
_compat,
10+
distributions,
1011
version,
1112
)
1213

@@ -59,3 +60,16 @@ def test_search_dist_dirs(self):
5960
"""
6061
res = MetadataPathFinder._search_paths('any-name', [])
6162
assert list(res) == []
63+
64+
def test_interleaved_discovery(self):
65+
"""
66+
When the search is cached, it is
67+
possible for searches to be interleaved, so make sure
68+
those use-cases are safe.
69+
70+
Ref #293
71+
"""
72+
dists = distributions()
73+
next(dists)
74+
version('importlib_metadata')
75+
next(dists)

0 commit comments

Comments
 (0)
0