File tree 2 files changed +15
-0
lines changed
2 files changed +15
-0
lines changed Original file line number Diff line number Diff line change 4
4
* #10: Project now declares itself as being typed.
5
5
* #272: Additional performance enhancements to distribution
6
6
discovery.
7
+ * #111: For PyPA projects, add test ensuring that
8
+ ``MetadataPathFinder._search_paths `` honors the needed
9
+ interface. Method is still private.
7
10
8
11
v3.3.0
9
12
======
Original file line number Diff line number Diff line change 5
5
from . import fixtures
6
6
from importlib_metadata import (
7
7
Distribution ,
8
+ MetadataPathFinder ,
8
9
_compat ,
9
10
version ,
10
11
)
@@ -47,3 +48,14 @@ def test_find_local(self):
47
48
dist = Distribution ._local ()
48
49
assert dist .metadata ['Name' ] == 'local-pkg'
49
50
assert dist .version == '2.0.1'
51
+
52
+
53
+ class DistSearch (unittest .TestCase ):
54
+ def test_search_dist_dirs (self ):
55
+ """
56
+ Pip needs the _search_paths interface to locate
57
+ distribution metadata dirs. Protect it for PyPA
58
+ use-cases (only). Ref python/importlib_metadata#111.
59
+ """
60
+ res = MetadataPathFinder ._search_paths ('any-name' , [])
61
+ assert list (res ) == []
You can’t perform that action at this time.
0 commit comments