Skip to content

Commit 3c74650

Browse files
committed
GH-100479: Fix pathlib test failure on WASI
1 parent d00d942 commit 3c74650

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

Lib/test/test_pathlib.py

+2-1
Original file line numberDiff line numberDiff line change
@@ -1655,7 +1655,8 @@ class P(_BasePurePathSubclass, self.cls):
16551655
p = P(BASE, session_id=42)
16561656
self.assertEqual(42, p.absolute().session_id)
16571657
self.assertEqual(42, p.resolve().session_id)
1658-
self.assertEqual(42, p.with_segments('~').expanduser().session_id)
1658+
if not is_wasi: # WASI has no user accounts.
1659+
self.assertEqual(42, p.with_segments('~').expanduser().session_id)
16591660
self.assertEqual(42, (p / 'fileA').rename(p / 'fileB').session_id)
16601661
self.assertEqual(42, (p / 'fileB').replace(p / 'fileA').session_id)
16611662
if os_helper.can_symlink():

0 commit comments

Comments
 (0)