summaryrefslogtreecommitdiff
path: root/Lib/test/test_pathlib.py
diff options
context:
space:
mode:
Diffstat (limited to 'Lib/test/test_pathlib.py')
-rw-r--r--Lib/test/test_pathlib.py3
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),