From 7f70f1c5cc964f64a89b3536b1bc96c3ecb6cb24 Mon Sep 17 00:00:00 2001 From: Nikita Sobolev Date: Thu, 27 Apr 2023 13:33:29 +0300 Subject: [PATCH] [3.11] gh-103880: Fix `assertRaises` usage in `test_genericalias` (GH-103916) (#103917) (cherry picked from commit dff8e5dc8d0758d1f9c55fdef308e44aefebe1a2) --- Lib/test/test_genericalias.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/Lib/test/test_genericalias.py b/Lib/test/test_genericalias.py index e44193a0f72..d8c5b8e76e0 100644 --- a/Lib/test/test_genericalias.py +++ b/Lib/test/test_genericalias.py @@ -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):