[3.11] gh-103880: Fix assertRaises usage in test_genericalias (GH-103916) (#103917)

(cherry picked from commit dff8e5dc8d)
This commit is contained in:
Nikita Sobolev 2023-04-27 13:33:29 +03:00 committed by GitHub
parent 2cd1b9c2ca
commit 7f70f1c5cc
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -305,8 +305,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):