diff options
author | Berker Peksag <berker.peksag@gmail.com> | 2016-03-11 23:08:11 +0200 |
---|---|---|
committer | Berker Peksag <berker.peksag@gmail.com> | 2016-03-11 23:08:11 +0200 |
commit | 9c07e8da2a6648ebed4f2b43f989e2d6daac68ba (patch) | |
tree | ab1bc895bba131280fc21cde20c00113d264357c /Lib/test/test_pathlib.py | |
parent | ee87dabe7ae0054eef9a12fb32a2fe3d40457c9e (diff) | |
parent | 6cc68ba2e369a52b2aa3c895e17cb7adedb749b8 (diff) | |
download | cpython-9c07e8da2a6648ebed4f2b43f989e2d6daac68ba.tar.gz |
Issue #20589: Invoking Path.owner() and Path.group() on Windows now raise
NotImplementedError instead of ImportError.
Diffstat (limited to 'Lib/test/test_pathlib.py')
-rw-r--r-- | Lib/test/test_pathlib.py | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/Lib/test/test_pathlib.py b/Lib/test/test_pathlib.py index 9a98d46c4e..451e41f5ff 100644 --- a/Lib/test/test_pathlib.py +++ b/Lib/test/test_pathlib.py @@ -1156,6 +1156,15 @@ 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 |