Skip to content

Commit 4c7ef61

Browse files
committed
Add another test for _name_from_stem.
1 parent a92fbf3 commit 4c7ef61

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

importlib_metadata/__init__.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -967,6 +967,7 @@ def _name_from_stem(stem):
967967
'CherryPy'
968968
>>> PathDistribution._name_from_stem('face.egg-info')
969969
'face'
970+
>>> PathDistribution._name_from_stem('foo.bar')
970971
"""
971972
filename, ext = os.path.splitext(stem)
972973
if ext not in ('.dist-info', '.egg-info'):

0 commit comments

Comments
 (0)