Skip to content

Commit 11c0531

Browse files
committed
Add test for FastPath on empty path. Ref #353.
1 parent eda7021 commit 11c0531

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

importlib_metadata/__init__.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -760,6 +760,9 @@ class FastPath:
760760
"""
761761
Micro-optimized class for searching a path for
762762
children.
763+
764+
>>> FastPath('').children()
765+
['...']
763766
"""
764767

765768
@functools.lru_cache() # type: ignore

0 commit comments

Comments
 (0)