Visitar URL original
bpo-43012: remove `pathlib._Accessor` by barneygale · Pull Request #25701 · python/cpython · GitHub
Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Fix up broken merge from main.
  • Loading branch information
barneygale committed Jan 29, 2022
commit cfaf15fdd5bfff653b27ab8caf999c82119668e4
4 changes: 2 additions & 2 deletions Lib/test/test_pathlib.py
Original file line number Diff line number Diff line change
Expand Up @@ -1460,7 +1460,7 @@ def test_cwd(self):
def test_absolute_common(self):
P = self.cls

with mock.patch("pathlib._normal_accessor.getcwd") as getcwd:
with mock.patch("os.getcwd") as getcwd:
getcwd.return_value = BASE

# Simple relative paths.
Expand Down Expand Up @@ -2675,7 +2675,7 @@ def test_absolute(self):
self.assertEqual(str(P(share + 'a\\b').absolute()), share + 'a\\b')

# UNC relative paths.
with mock.patch("pathlib._normal_accessor.getcwd") as getcwd:
with mock.patch("os.getcwd") as getcwd:
getcwd.return_value = share

self.assertEqual(str(P().absolute()), share)
Expand Down