8000
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents d91dd25 + f545a8f commit 99f83cfCopy full SHA for 99f83cf
tests/test_integration.py
@@ -7,6 +7,7 @@
7
Distribution,
8
MetadataPathFinder,
9
_compat,
10
+ distributions,
11
version,
12
)
13
@@ -59,3 +60,16 @@ def test_search_dist_dirs(self):
59
60
"""
61
res = MetadataPathFinder._search_paths('any-name', [])
62
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
0 commit comments