(self)
| 262 | self.assertEqual(err, ['ExceptionGroup: A (1 sub-exception)\n']) |
| 263 | |
| 264 | def test_format_exception_group(self): |
| 265 | eg = ExceptionGroup('A', [ValueError('B')]) |
| 266 | err = traceback.format_exception_only(eg, show_group=True) |
| 267 | self.assertEqual(err, [ |
| 268 | 'ExceptionGroup: A (1 sub-exception)\n', |
| 269 | ' ValueError: B\n', |
| 270 | ]) |
| 271 | |
| 272 | def test_format_base_exception_group(self): |
| 273 | eg = BaseExceptionGroup('A', [BaseException('B')]) |
nothing calls this directly
no test coverage detected