ci: fix failing test test_realpath_existing for os.real_path on macos

pull/10453/head
Delyan Angelov 2021-06-15 14:13:12 +03:00
parent 0c922f5570
commit 48b3ab831b
No known key found for this signature in database
GPG Key ID: 66886C0F12D595ED
1 changed files with 3 additions and 1 deletions

View File

@ -308,7 +308,9 @@ fn test_realpath_existing() {
os.rm(existing_file) or {} os.rm(existing_file) or {}
os.write_file(existing_file, 'abc') or {} os.write_file(existing_file, 'abc') or {}
assert os.exists(existing_file) assert os.exists(existing_file)
assert os.real_path(existing_file) == existing_file rpath := os.real_path(existing_file)
assert os.is_abs_path(rpath)
assert rpath.ends_with(existing_file_name)
os.rm(existing_file) or {} os.rm(existing_file) or {}
} }