[Python-checkins] cpython (3.5): Issue #20589: Fix test_pathlib
victor.stinner
python-checkins at python.org
Fri Mar 11 16:53:33 EST 2016
https://hg.python.org/cpython/rev/64d45f3d0978
changeset: 100495:64d45f3d0978
branch: 3.5
parent: 100491:ffd0603f5251
user: Victor Stinner <victor.stinner at gmail.com>
date: Fri Mar 11 22:53:00 2016 +0100
summary:
Issue #20589: Fix test_pathlib
files:
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
--- a/Lib/test/test_pathlib.py
+++ b/Lib/test/test_pathlib.py
@@ -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."""
--
Repository URL: https://hg.python.org/cpython
More information about the Python-checkins
mailing list