gh-103880: Fix `assertRaises` usage in `test_genericalias` (GH-103916)

This commit is contained in:
Nikita Sobolev 2023-04-27 11:54:59 +03:00 committed by GitHub
parent ce2383ec66
commit dff8e5dc8d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 0 deletions

View File

@ -314,8 +314,11 @@ class BaseTest(unittest.TestCase):
with self.assertRaises(TypeError):
list[int][int]
with self.assertRaises(TypeError):
dict[T, int][str, int]
with self.assertRaises(TypeError):
dict[str, T][str, int]
with self.assertRaises(TypeError):
dict[T, T][str, int]
def test_equality(self):