mirror of
https://github.com/python/cpython.git
synced 2025-10-17 12:18:23 +00:00
bpo-38994: Implement __class_getitem__ for PathLike (GH-17498)
https://bugs.python.org/issue38994
This commit is contained in:
parent
cd90a52983
commit
526606baf7
5 changed files with 13 additions and 0 deletions
|
@ -4048,6 +4048,9 @@ class TestPEP519(unittest.TestCase):
|
|||
self.assertRaises(ZeroDivisionError, self.fspath,
|
||||
FakePath(ZeroDivisionError()))
|
||||
|
||||
def test_pathlike_class_getitem(self):
|
||||
self.assertIs(os.PathLike[bytes], os.PathLike)
|
||||
|
||||
|
||||
class TimesTests(unittest.TestCase):
|
||||
def test_times(self):
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue