Fix transform_path_to_dotted tests on Windows
Convert paths to normalized absolute ones in transform_path_to_dotted tests.
This commit is contained in:
1 parent
92a8a84ff2
commit
77a7792afc
2 files changed
+5
-1
No files matched your search
@@ -86,4 +86,7 @@ _s = ['/a', '/b', '/c/d/']
|
||||
(_s, '/a/c/.py', None),
|
||||
])
|
||||
def test_calculate_dotted_from_path(sys_path_, module_path, result):
|
||||
# tranform_path_to_dotted expects normalized absolute paths.
|
||||
sys_path_ = [os.path.abspath(path) for path in sys_path_]
|
||||
module_path = os.path.abspath(module_path)
|
||||
assert sys_path.transform_path_to_dotted(sys_path_, module_path) == result
|
||||
Reference in new issue
Block a user