mirror of https://github.com/python/cpython.git
[3.11] gh-103880: Fix `assertRaises` usage in `test_genericalias` (GH-103916) (#103917)
(cherry picked from commit dff8e5dc8d
)
This commit is contained in:
parent
2cd1b9c2ca
commit
7f70f1c5cc
|
@ -305,8 +305,11 @@ def test_parameter_chaining(self):
|
|||
|
||||
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