Skip to content

Commit 7f70f1c

Browse files
authored
[3.11] gh-103880: Fix assertRaises usage in test_genericalias (GH-103916) (#103917)
(cherry picked from commit dff8e5d)
1 parent 2cd1b9c commit 7f70f1c

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

Lib/test/test_genericalias.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -305,8 +305,11 @@ def test_parameter_chaining(self):
305305

306306
with self.assertRaises(TypeError):
307307
list[int][int]
308+
with self.assertRaises(TypeError):
308309
dict[T, int][str, int]
310+
with self.assertRaises(TypeError):
309311
dict[str, T][str, int]
312+
with self.assertRaises(TypeError):
310313
dict[T, T][str, int]
311314

312315
def test_equality(self):

0 commit comments

Comments
 (0)