From: Victor Stinner Date: Fri, 11 Mar 2016 21:53:00 +0000 (+0100) Subject: Issue #20589: Fix test_pathlib X-Git-Tag: v3.6.0a1~498^2 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=d7569637b53d457423d47e83bd9ec35ce1aba772;p=thirdparty%2FPython%2Fcpython.git Issue #20589: Fix test_pathlib --- diff --git a/Lib/test/test_pathlib.py b/Lib/test/test_pathlib.py index 8ba9c8f3a795..865d07688666 100644 --- a/Lib/test/test_pathlib.py +++ b/Lib/test/test_pathlib.py @@ -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."""