diff options
Diffstat (limited to 'Lib/test/test_exception_group.py')
| -rw-r--r-- | Lib/test/test_exception_group.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/test/test_exception_group.py b/Lib/test/test_exception_group.py index 8a55c82..793e8d2 100644 --- a/Lib/test/test_exception_group.py +++ b/Lib/test/test_exception_group.py @@ -11,7 +11,7 @@ class TestExceptionGroupTypeHierarchy(unittest.TestCase): self.assertTrue(issubclass(BaseExceptionGroup, BaseException)) def test_exception_is_not_generic_type(self): - with self.assertRaises(TypeError): + with self.assertRaisesRegex(TypeError, 'Exception'): Exception[OSError] def test_exception_group_is_generic_type(self): |
