diff options
author | Guido van Rossum <guido@dropbox.com> | 2016-05-19 13:11:17 -0700 |
---|---|---|
committer | Guido van Rossum <guido@dropbox.com> | 2016-05-19 13:11:17 -0700 |
commit | 03e6061956d10586b70eb78f3d76ce0952ee5bd8 (patch) | |
tree | 4e8bf012754eb339d45cd9d0d14b26c6c4a5b360 /Lib/test/test_pathlib.py | |
parent | 7fa6378747dfffb983f14b9f6e760ab65a112fe3 (diff) | |
parent | 387e6e38175b853741c4f35e08791f0990bc0845 (diff) | |
download | cpython-git-03e6061956d10586b70eb78f3d76ce0952ee5bd8.tar.gz |
Back out pathlib.Path.path attr. (Merge 3.5->3.6)
Diffstat (limited to 'Lib/test/test_pathlib.py')
-rw-r--r-- | Lib/test/test_pathlib.py | 27 |
1 files changed, 0 insertions, 27 deletions
diff --git a/Lib/test/test_pathlib.py b/Lib/test/test_pathlib.py index 6119bc1c99..fbbd448f65 100644 --- a/Lib/test/test_pathlib.py +++ b/Lib/test/test_pathlib.py @@ -477,22 +477,6 @@ class _BasePurePathTest(object): self.assertEqual(P('a/b.py').name, 'b.py') self.assertEqual(P('/a/b.py').name, 'b.py') - def test_path_common(self): - P = self.cls - def check(arg, expected=None): - if expected is None: - expected = arg - self.assertEqual(P(arg).path, expected.replace('/', self.sep)) - check('', '.') - check('.') - check('/') - check('a/b') - check('/a/b') - check('/a/b/', '/a/b') - check('/a/b/.', '/a/b') - check('a/b.py') - check('/a/b.py') - def test_suffix_common(self): P = self.cls self.assertEqual(P('').suffix, '') @@ -915,17 +899,6 @@ class PureWindowsPathTest(_BasePurePathTest, unittest.TestCase): self.assertEqual(P('//My.py/Share.php').name, '') self.assertEqual(P('//My.py/Share.php/a/b').name, 'b') - def test_path(self): - P = self.cls - self.assertEqual(P('c:').path, 'c:') - self.assertEqual(P('c:/').path, 'c:\\') - self.assertEqual(P('c:a/b').path, 'c:a\\b') - self.assertEqual(P('c:/a/b').path, 'c:\\a\\b') - self.assertEqual(P('c:a/b.py').path, 'c:a\\b.py') - self.assertEqual(P('c:/a/b.py').path, 'c:\\a\\b.py') - self.assertEqual(P('//My.py/Share.php').path, '\\\\My.py\\Share.php\\') - self.assertEqual(P('//My.py/Share.php/a/b').path, '\\\\My.py\\Share.php\\a\\b') - def test_suffix(self): P = self.cls self.assertEqual(P('c:').suffix, '') |