diff options
author | Batuhan Taşkaya <47358913+isidentical@users.noreply.github.com> | 2019-12-08 23:31:15 +0300 |
---|---|---|
committer | Miss Islington (bot) <31488909+miss-islington@users.noreply.github.com> | 2019-12-08 12:31:15 -0800 |
commit | 526606baf76e7a5309bb00f3bfaefa861a2014ba (patch) | |
tree | a08b64df10f2a555fbc2c45be3849750fbbb9d52 /Lib/test/test_pathlib.py | |
parent | cd90a52983db34896a6335a572d55bdda274778f (diff) | |
download | cpython-git-526606baf76e7a5309bb00f3bfaefa861a2014ba.tar.gz |
bpo-38994: Implement __class_getitem__ for PathLike (GH-17498)
https://bugs.python.org/issue38994
Diffstat (limited to 'Lib/test/test_pathlib.py')
-rw-r--r-- | Lib/test/test_pathlib.py | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/Lib/test/test_pathlib.py b/Lib/test/test_pathlib.py index 058a201aeb..b8e7fcc2e3 100644 --- a/Lib/test/test_pathlib.py +++ b/Lib/test/test_pathlib.py @@ -2217,6 +2217,9 @@ class _BasePathTest(object): class PathTest(_BasePathTest, unittest.TestCase): cls = pathlib.Path + def test_class_getitem(self): + self.assertIs(self.cls[str], self.cls) + def test_concrete_class(self): p = self.cls('a') self.assertIs(type(p), |