Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 25caed5

Browse files
committed
Merge 3.5
2 parents 474ebbb + d756963 commit 25caed5

1 file changed

Lines changed: 10 additions & 10 deletions

File tree

Lib/test/test_pathlib.py

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1156,16 +1156,6 @@ def test_is_reserved(self):
11561156
# UNC paths are never reserved
11571157
self.assertIs(False, P('//my/share/nul/con/aux').is_reserved())
11581158

1159-
def test_owner(self):
1160-
P = self.cls
1161-
with self.assertRaises(NotImplementedError):
1162-
P('c:/').owner()
1163-
1164-
def test_group(self):
1165-
P = self.cls
1166-
with self.assertRaises(NotImplementedError):
1167-
P('c:/').group()
1168-
11691159
class PurePathTest(_BasePurePathTest, unittest.TestCase):
11701160
cls = pathlib.PurePath
11711161

@@ -1229,6 +1219,16 @@ class PosixPathAsPureTest(PurePosixPathTest):
12291219
class WindowsPathAsPureTest(PureWindowsPathTest):
12301220
cls = pathlib.WindowsPath
12311221

1222+
def test_owner(self):
1223+
P = self.cls
1224+
with self.assertRaises(NotImplementedError):
1225+
P('c:/').owner()
1226+
1227+
def test_group(self):
1228+
P = self.cls
1229+
with self.assertRaises(NotImplementedError):
1230+
P('c:/').group()
1231+
12321232

12331233
class _BasePathTest(object):
12341234
"""Tests for the FS-accessing functionalities of the Path classes."""

0 commit comments

Comments
 (0)