commit | 526606baf76e7a5309bb00f3bfaefa861a2014ba | [log] [tgz] |
---|---|---|
author | Batuhan Taşkaya <47358913+isidentical@users.noreply.github.com> | Sun Dec 08 23:31:15 2019 +0300 |
committer | Miss Islington (bot) <31488909+miss-islington@users.noreply.github.com> | Sun Dec 08 12:31:15 2019 -0800 |
tree | a08b64df10f2a555fbc2c45be3849750fbbb9d52 | |
parent | cd90a52983db34896a6335a572d55bdda274778f [diff] [blame] |
bpo-38994: Implement __class_getitem__ for PathLike (GH-17498) https://bugs.python.org/issue38994
diff --git a/Lib/test/test_os.py b/Lib/test/test_os.py index bf40cb1..f44ddba 100644 --- a/Lib/test/test_os.py +++ b/Lib/test/test_os.py
@@ -4048,6 +4048,9 @@ 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):