Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Test how link() actually works on WASI.
  • Loading branch information
serhiy-storchaka committed Apr 15, 2025
commit a45dfd9e18e44d43ef1bae00c0e2f2293c3dbe3f
3 changes: 3 additions & 0 deletions Lib/test/test_posix.py
Original file line number Diff line number Diff line change
Expand Up @@ -1540,6 +1540,9 @@ def test_link_follow_symlinks(self):
self.assertEqual(posix.lstat(link), posix.lstat(orig))
elif default_no_follow:
self.assertEqual(posix.lstat(link), posix.lstat(symlink))
if sys.platform.startswith('wasi'):
self.assertEqual(posix.lstat(link), posix.lstat(orig))
self.assertEqual(posix.lstat(link), posix.lstat(symlink))

with self.subTest('follow_symlinks=False'):
# follow_symlinks=False -> duplicate the symlink itself
Expand Down
Loading