8000
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
pathlib.Path.resolve()
1 parent 7109624 commit 18f41c0Copy full SHA for 18f41c0
Lib/test/test_pathlib.py
@@ -1799,6 +1799,16 @@ def test_resolve_dot(self):
1799
# Non-strict
1800
self.assertEqual(r.resolve(strict=False), p / '3' / '4')
1801
1802
+ def test_resolve_nonexist_relative_issue38671(self):
1803
+ p = self.cls('non', 'exist')
1804
+
1805
+ old_cwd = os.getcwd()
1806
+ os.chdir(BASE)
1807
+ try:
1808
+ self.assertEqual(p.resolve(), self.cls(BASE, p))
1809
+ finally:
1810
+ os.chdir(old_cwd)
1811
1812
def test_with(self):
1813
p = self.cls(BASE)
1814
it = p.iterdir()
0 commit comments