Skip to content

Commit

Permalink
Add test capturing failure. Ref #293.
Browse files Browse the repository at this point in the history
  • Loading branch information
jaraco committed Mar 27, 2021
1 parent 6360916 commit f545a8f
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions tests/test_integration.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
Distribution,
MetadataPathFinder,
_compat,
distributions,
version,
)

Expand Down Expand Up @@ -59,3 +60,16 @@ def test_search_dist_dirs(self):
"""
res = MetadataPathFinder._search_paths('any-name', [])
assert list(res) == []

def test_interleaved_discovery(self):
"""
When the search is cached, it is
possible for searches to be interleaved, so make sure
those use-cases are safe.
Ref #293
"""
dists = distributions()
next(dists)
version('importlib_metadata')
next(dists)

0 comments on commit f545a8f

Please sign in to comment.