______________________________________________________________________________________________________ test_get_paths_windows_traverse _______________________________________________________________________________________________________
def test_get_paths_windows_traverse():
base_path = pathlib.PureWindowsPath("C:\\ftp")
user = aioftp.User()
user.base_path = base_path
connection = aioftp.Connection(current_directory=base_path, user=user)
virtual_path = pathlib.PurePosixPath("/foo/C:\\windows")
real_path, resolved_virtual_path = aioftp.Server.get_paths(
connection,
virtual_path,
)
> assert real_path == base_path
E AssertionError: assert PureWindowsPath('C:/ftp/foo/C:/windows') == PureWindowsPath('C:/ftp')
Found at https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1082132 and I can confirm it locally.