mirror of
https://github.com/python/cpython.git
synced 2025-08-04 00:48:58 +00:00
bpo-46483: Remove __class_getitem__
from pathlib.PurePath
(GH-30848)
Co-authored-by: Kumar Aditya <59607654+kumaraditya303@users.noreply.github.com>
This commit is contained in:
parent
0cbdd21311
commit
7ffe7ba30f
5 changed files with 4 additions and 14 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue