mirror of
https://github.com/python/cpython.git
synced 2025-10-17 12:18:23 +00:00
Use more precise exception types in assertRaises
in typing tests (#98650)
This commit is contained in:
parent
d91de288e7
commit
45c89358b7
1 changed files with 3 additions and 3 deletions
|
@ -3575,11 +3575,11 @@ class GenericTests(BaseTestCase):
|
|||
|
||||
self.assertEqual(D.__parameters__, ())
|
||||
|
||||
with self.assertRaises(Exception):
|
||||
with self.assertRaises(TypeError):
|
||||
D[int]
|
||||
with self.assertRaises(Exception):
|
||||
with self.assertRaises(TypeError):
|
||||
D[Any]
|
||||
with self.assertRaises(Exception):
|
||||
with self.assertRaises(TypeError):
|
||||
D[T]
|
||||
|
||||
def test_new_with_args(self):
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue