diff options
author | Berker Peksag <berker.peksag@gmail.com> | 2016-03-11 23:07:27 +0200 |
---|---|---|
committer | Berker Peksag <berker.peksag@gmail.com> | 2016-03-11 23:07:27 +0200 |
commit | 04d4229719055c9536da6d4b58033981ef86d0d2 (patch) | |
tree | 647b46ed6b971e472bfdce1d1538b4685cced106 /Lib/test/test_pathlib.py | |
parent | ca0250a87805d7f1f52d04a9dffa0944b2f13278 (diff) | |
download | cpython-git-04d4229719055c9536da6d4b58033981ef86d0d2.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 b03fee018f..8ba9c8f3a7 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 |