Skip to content

Commit

Permalink
GH-100479: Fix pathlib test failure on WASI (#104215)
Browse files Browse the repository at this point in the history
  • Loading branch information
barneygale committed May 7, 2023
1 parent 7a7eaff commit 60f5884
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion Lib/test/test_pathlib.py
Original file line number Diff line number Diff line change
Expand Up @@ -1655,7 +1655,8 @@ class P(_BasePurePathSubclass, self.cls):
p = P(BASE, session_id=42)
self.assertEqual(42, p.absolute().session_id)
self.assertEqual(42, p.resolve().session_id)
self.assertEqual(42, p.with_segments('~').expanduser().session_id)
if not is_wasi: # WASI has no user accounts.
self.assertEqual(42, p.with_segments('~').expanduser().session_id)
self.assertEqual(42, (p / 'fileA').rename(p / 'fileB').session_id)
self.assertEqual(42, (p / 'fileB').replace(p / 'fileA').session_id)
if os_helper.can_symlink():
Expand Down

0 comments on commit 60f5884

Please sign in to comment.