mirror of
https://github.com/python/cpython.git
synced 2025-08-04 00:48:58 +00:00
GH-100479: Fix pathlib test failure on WASI (#104215)
This commit is contained in:
parent
7a7eaff95c
commit
60f588478f
1 changed files with 2 additions and 1 deletions
|
@ -1655,7 +1655,8 @@ class _BasePathTest(object):
|
|||
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():
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue