Skip to content

Commit a45dfd9

Browse files
Test how link() actually works on WASI.
1 parent 80128e3 commit a45dfd9

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

Lib/test/test_posix.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1540,6 +1540,9 @@ def test_link_follow_symlinks(self):
15401540
self.assertEqual(posix.lstat(link), posix.lstat(orig))
15411541
elif default_no_follow:
15421542
self.assertEqual(posix.lstat(link), posix.lstat(symlink))
1543+
if sys.platform.startswith('wasi'):
1544+
self.assertEqual(posix.lstat(link), posix.lstat(orig))
1545+
self.assertEqual(posix.lstat(link), posix.lstat(symlink))
15431546

15441547
with self.subTest('follow_symlinks=False'):
15451548
# follow_symlinks=False -> duplicate the symlink itself

0 commit comments

Comments
 (0)