Skip to content

Commit dff8e5d

Browse files
authored
gh-103880: Fix assertRaises usage in test_genericalias (GH-103916)
1 parent ce2383e commit dff8e5d

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
@@ -314,8 +314,11 @@ def test_parameter_chaining(self):
314314

315315
with self.assertRaises(TypeError):
316316
list[int][int]
317+
with self.assertRaises(TypeError):
317318
dict[T, int][str, int]
319+
with self.assertRaises(TypeError):
318320
dict[str, T][str, int]
321+
with self.assertRaises(TypeError):
319322
dict[T, T][str, int]
320323

321324
def test_equality(self):

0 commit comments

Comments
 (0)