mirror of
https://github.com/python/cpython.git
synced 2025-09-26 18:29:57 +00:00
Test same drive in different cases (issue #19908).
This commit is contained in:
parent
a993902a28
commit
010ff584bc
1 changed files with 2 additions and 2 deletions
|
@ -1014,8 +1014,8 @@ class PureWindowsPathTest(_BasePurePathTest, unittest.TestCase):
|
||||||
self.assertEqual(p / '//host/share/x/y', P('//host/share/x/y'))
|
self.assertEqual(p / '//host/share/x/y', P('//host/share/x/y'))
|
||||||
# Joining with the same drive => the first path is appended to if
|
# Joining with the same drive => the first path is appended to if
|
||||||
# the second path is relative.
|
# the second path is relative.
|
||||||
self.assertEqual(p / 'C:x/y', P('C:/a/b/x/y'))
|
self.assertEqual(p / 'c:x/y', P('C:/a/b/x/y'))
|
||||||
self.assertEqual(p / 'C:/x/y', P('C:/x/y'))
|
self.assertEqual(p / 'c:/x/y', P('C:/x/y'))
|
||||||
|
|
||||||
def test_is_reserved(self):
|
def test_is_reserved(self):
|
||||||
P = self.cls
|
P = self.cls
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue