Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 60f5884

Browse filesBrowse files
authored
GH-100479: Fix pathlib test failure on WASI (#104215)
1 parent 7a7eaff commit 60f5884
Copy full SHA for 60f5884

File tree

1 file changed

+2
-1
lines changed
Filter options

1 file changed

+2
-1
lines changed

‎Lib/test/test_pathlib.py

Copy file name to clipboardExpand all lines: Lib/test/test_pathlib.py
+2-1Lines changed: 2 additions & 1 deletion
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 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.