changeset: 100495:64d45f3d0978 branch: 3.5 parent: 100491:ffd0603f5251 user: Victor Stinner date: Fri Mar 11 22:53:00 2016 +0100 files: Lib/test/test_pathlib.py description: Issue #20589: Fix test_pathlib diff -r ffd0603f5251 -r 64d45f3d0978 Lib/test/test_pathlib.py --- a/Lib/test/test_pathlib.py Fri Mar 11 23:19:48 2016 +0200 +++ b/Lib/test/test_pathlib.py Fri Mar 11 22:53:00 2016 +0100 @@ -1156,16 +1156,6 @@ # 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 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."""