summaryrefslogtreecommitdiffstats
path: root/Lib/test/test_pathlib.py
diff options
context:
space:
mode:
authorNikita Sobolev <mail@sobolevn.me>2022-02-03 09:25:10 (GMT)
committerGitHub <noreply@github.com>2022-02-03 09:25:10 (GMT)
commit7ffe7ba30fc051014977c6f393c51e57e71a6648 (patch)
tree0f1e476fdbac481a29eab473b2531a21e8306a9b /Lib/test/test_pathlib.py
parent0cbdd2131195b0d313762968f604e80a3e65ca9f (diff)
downloadcpython-7ffe7ba30fc051014977c6f393c51e57e71a6648.zip
cpython-7ffe7ba30fc051014977c6f393c51e57e71a6648.tar.gz
cpython-7ffe7ba30fc051014977c6f393c51e57e71a6648.tar.bz2
bpo-46483: Remove `__class_getitem__` from `pathlib.PurePath` (GH-30848)
Co-authored-by: Kumar Aditya <59607654+kumaraditya303@users.noreply.github.com>
Diffstat (limited to 'Lib/test/test_pathlib.py')
-rw-r--r--Lib/test/test_pathlib.py9
1 files changed, 0 insertions, 9 deletions
diff --git a/Lib/test/test_pathlib.py b/Lib/test/test_pathlib.py
index 5e46b4f..ec2baca 100644
--- a/Lib/test/test_pathlib.py
+++ b/Lib/test/test_pathlib.py
@@ -2450,15 +2450,6 @@ class _BasePathTest(object):
def test_complex_symlinks_relative_dot_dot(self):
self._check_complex_symlinks(os.path.join('dirA', '..'))
- def test_class_getitem(self):
- from types import GenericAlias
-
- alias = self.cls[str]
- self.assertIsInstance(alias, GenericAlias)
- self.assertIs(alias.__origin__, self.cls)
- self.assertEqual(alias.__args__, (str,))
- self.assertEqual(alias.__parameters__, ())
-
class PathTest(_BasePathTest, unittest.TestCase):
cls = pathlib.Path