Use subTest in test_exceptions for better error reporting (GH-20140)

1 file changed