File tree 1 file changed +10
-10
lines changed
1 file changed +10
-10
lines changed Original file line number Diff line number Diff line change @@ -1577,16 +1577,6 @@ class PosixPathAsPureTest(PurePosixPathTest):
1577
1577
class WindowsPathAsPureTest (PureWindowsPathTest ):
1578
1578
cls = pathlib .WindowsPath
1579
1579
1580
- def test_owner (self ):
1581
- P = self .cls
1582
- with self .assertRaises (pathlib .UnsupportedOperation ):
1583
- P ('c:/' ).owner ()
1584
-
1585
- def test_group (self ):
1586
- P = self .cls
1587
- with self .assertRaises (pathlib .UnsupportedOperation ):
1588
- P ('c:/' ).group ()
1589
-
1590
1580
1591
1581
#
1592
1582
# Tests for the virtual classes.
@@ -3738,6 +3728,16 @@ def test_from_uri_pathname2url(self):
3738
3728
self .assertEqual (P .from_uri ('file:' + pathname2url (r'c:\path\to\file' )), P ('c:/path/to/file' ))
3739
3729
self .assertEqual (P .from_uri ('file:' + pathname2url (r'\\server\path\to\file' )), P ('//server/path/to/file' ))
3740
3730
3731
+ def test_owner (self ):
3732
+ P = self .cls
3733
+ with self .assertRaises (pathlib .UnsupportedOperation ):
3734
+ P ('c:/' ).owner ()
3735
+
3736
+ def test_group (self ):
3737
+ P = self .cls
3738
+ with self .assertRaises (pathlib .UnsupportedOperation ):
3739
+ P ('c:/' ).group ()
3740
+
3741
3741
3742
3742
class PathSubclassTest (PathTest ):
3743
3743
class cls (pathlib .Path ):
You can’t perform that action at this time.
0 commit comments