diff options
author | Victor Stinner <victor.stinner@gmail.com> | 2016-03-11 21:53:00 (GMT) |
---|---|---|
committer | Victor Stinner <victor.stinner@gmail.com> | 2016-03-11 21:53:00 (GMT) |
commit | d7569637b53d457423d47e83bd9ec35ce1aba772 (patch) | |
tree | 6253b176e5baf1e72d38b8727b58254e0753d73c /Lib | |
parent | eb2e02bed401e5faab7f9170350d186c59262de2 (diff) | |
download | cpython-d7569637b53d457423d47e83bd9ec35ce1aba772.zip cpython-d7569637b53d457423d47e83bd9ec35ce1aba772.tar.gz cpython-d7569637b53d457423d47e83bd9ec35ce1aba772.tar.bz2 |
Issue #20589: Fix test_pathlib
Diffstat (limited to 'Lib')
-rw-r--r-- | Lib/test/test_pathlib.py | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/Lib/test/test_pathlib.py b/Lib/test/test_pathlib.py index 8ba9c8f..865d076 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.""" |