From 526606baf76e7a5309bb00f3bfaefa861a2014ba Mon Sep 17 00:00:00 2001 From: Batuhan Taşkaya <47358913+isidentical@users.noreply.github.com> Date: Sun, 8 Dec 2019 23:31:15 +0300 Subject: bpo-38994: Implement __class_getitem__ for PathLike (GH-17498) https://bugs.python.org/issue38994 --- Lib/test/test_pathlib.py | 3 +++ 1 file changed, 3 insertions(+) (limited to 'Lib/test/test_pathlib.py') diff --git a/Lib/test/test_pathlib.py b/Lib/test/test_pathlib.py index 058a201aebc..b8e7fcc2e30 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), -- cgit v1.2.3