Merge branch 'master' into ts2

This commit is contained in:
Dave Halter
2019-04-05 15:44:25 +02:00
2 changed files with 4 additions and 3 deletions

View File

@@ -93,5 +93,5 @@ _s = ['/a', '/b', '/c/d/']
(['/foo'], '/foo/bar.xyz', ('bar.xyz',), False),
])
def test_calculate_dotted_from_path(sys_path_, module_path, expected, is_package):
assert sys_path.transform_path_to_dotted(sys_path_, module_path) \
== (expected, is_package)
# tranform_path_to_dotted expects normalized absolute paths.
sys_path_ = [os.path.abspath(path) for path in sys_path_]