]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
Issue #20589: Fix test_pathlib
authorVictor Stinner <victor.stinner@gmail.com>
Fri, 11 Mar 2016 21:53:00 +0000 (22:53 +0100)
committerVictor Stinner <victor.stinner@gmail.com>
Fri, 11 Mar 2016 21:53:00 +0000 (22:53 +0100)
Lib/test/test_pathlib.py

index 8ba9c8f3a7951fbbfeb8759133e524c2f739d36a..865d07688666f63b13e26d29231d258d5892f37a 100644 (file)
@@ -1156,16 +1156,6 @@ class PureWindowsPathTest(_BasePurePathTest, unittest.TestCase):
         # UNC paths are never reserved
         self.assertIs(False, P('//my/share/nul/con/aux').is_reserved())
 
-    def test_owner(self):
-        P = self.cls
-        with self.assertRaises(NotImplementedError):
-            P('c:/').owner()
-
-    def test_group(self):
-        P = self.cls
-        with self.assertRaises(NotImplementedError):
-            P('c:/').group()
-
 class PurePathTest(_BasePurePathTest, unittest.TestCase):
     cls = pathlib.PurePath
 
@@ -1229,6 +1219,16 @@ class PosixPathAsPureTest(PurePosixPathTest):
 class WindowsPathAsPureTest(PureWindowsPathTest):
     cls = pathlib.WindowsPath
 
+    def test_owner(self):
+        P = self.cls
+        with self.assertRaises(NotImplementedError):
+            P('c:/').owner()
+
+    def test_group(self):
+        P = self.cls
+        with self.assertRaises(NotImplementedError):
+            P('c:/').group()
+
 
 class _BasePathTest(object):
     """Tests for the FS-accessing functionalities of the Path classes."""