mirror of
https://github.com/python/cpython.git
synced 2026-01-26 21:03:34 +00:00
[3.11] gh-103880: Fix assertRaises usage in test_genericalias (GH-103916) (#103917)
(cherry picked from commit dff8e5dc8d0758d1f9c55fdef308e44aefebe1a2)
This commit is contained in:
parent
2cd1b9c2ca
commit
7f70f1c5cc
@ -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…
x
Reference in New Issue
Block a user