mirror of
https://github.com/davidhalter/jedi.git
synced 2025-12-07 14:34:31 +08:00
Reintrodue a piece of sys_path code with test
This piece was thought to not be needed. It turns out it is
This commit is contained in:
@@ -94,6 +94,8 @@ _s = ['/a', '/b', '/c/d/']
|
||||
|
||||
(['/foo', '/foo/bar'], '/foo/bar/baz', ('baz',), False),
|
||||
(['/foo/bar', '/foo'], '/foo/bar/baz', ('baz',), False),
|
||||
|
||||
(['/'], '/bar/baz.py', ('bar', 'baz',), False),
|
||||
])
|
||||
def test_transform_path_to_dotted(sys_path_, module_path, expected, is_package):
|
||||
# transform_path_to_dotted expects normalized absolute paths.
|
||||
|
||||
Reference in New Issue
Block a user