mirror of
https://github.com/python/cpython.git
synced 2024-11-23 18:04:37 +08:00
gh-103880: Fix assertRaises
usage in test_genericalias
(GH-103916)
This commit is contained in:
parent
ce2383ec66
commit
dff8e5dc8d
@ -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):
|
||||
|
Loading…
Reference in New Issue
Block a user