]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
gh-103880: Fix `assertRaises` usage in `test_genericalias` (GH-103916)
authorNikita Sobolev <mail@sobolevn.me>
Thu, 27 Apr 2023 08:54:59 +0000 (11:54 +0300)
committerGitHub <noreply@github.com>
Thu, 27 Apr 2023 08:54:59 +0000 (16:54 +0800)
Lib/test/test_genericalias.py

index 9b59d1e3e0aad2728239e93c45b71592f991610b..24d4216417521ceeabe1ff18f14670f400a4d8e2 100644 (file)
@@ -314,8 +314,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):