mirror of
https://github.com/python/cpython.git
synced 2025-08-04 17:08:35 +00:00
[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
1 changed files with 3 additions and 0 deletions
|
@ -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):
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue