From: Nikita Sobolev Date: Thu, 27 Apr 2023 10:33:29 +0000 (+0300) Subject: [3.11] gh-103880: Fix `assertRaises` usage in `test_genericalias` (GH-103916) (#103917) X-Git-Tag: v3.11.4~154 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=7f70f1c5cc964f64a89b3536b1bc96c3ecb6cb24;p=thirdparty%2FPython%2Fcpython.git [3.11] gh-103880: Fix `assertRaises` usage in `test_genericalias` (GH-103916) (#103917) (cherry picked from commit dff8e5dc8d0758d1f9c55fdef308e44aefebe1a2) --- diff --git a/Lib/test/test_genericalias.py b/Lib/test/test_genericalias.py index e44193a0f72d..d8c5b8e76e07 100644 --- a/Lib/test/test_genericalias.py +++ b/Lib/test/test_genericalias.py @@ -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):