@@ -610,7 +610,7 @@ def testAllowInitDocstring(style: str) -> None:
610
610
'DOC305: Class `C`: Class docstring has a "Raises" section; please put it in '
611
611
'the __init__() docstring' ,
612
612
'DOC503: Method `C.__init__` exceptions in the "Raises" section in the '
613
- 'docstring do not match those in the function body Raises values in the '
613
+ 'docstring do not match those in the function body. Raised exceptions in the '
614
614
"docstring: ['TypeError']. Raised exceptions in the body: ['ValueError']." ,
615
615
'DOC306: Class `D`: The class docstring does not need a "Yields" section, '
616
616
'because __init__() cannot yield anything' ,
@@ -808,10 +808,10 @@ def testRaises(style: str, skipRaisesCheck: bool) -> None:
808
808
'DOC501: Method `B.func1` has "raise" statements, but the docstring does not '
809
809
'have a "Raises" section' ,
810
810
'DOC503: Method `B.func1` exceptions in the "Raises" section in the docstring '
811
- 'do not match those in the function body Raises values in the docstring: []. '
811
+ 'do not match those in the function body. Raised exceptions in the docstring: []. '
812
812
"Raised exceptions in the body: ['ValueError']." ,
813
813
'DOC503: Method `B.func4` exceptions in the "Raises" section in the docstring '
814
- 'do not match those in the function body Raises values in the docstring: '
814
+ 'do not match those in the function body. Raised exceptions in the docstring: '
815
815
"['CurtomError']. Raised exceptions in the body: ['CustomError']." ,
816
816
'DOC502: Method `B.func5` has a "Raises" section in the docstring, but there '
817
817
'are not "raise" statements in the body' ,
@@ -822,22 +822,22 @@ def testRaises(style: str, skipRaisesCheck: bool) -> None:
822
822
'DOC501: Function `inner9a` has "raise" statements, but the docstring does '
823
823
'not have a "Raises" section' ,
824
824
'DOC503: Function `inner9a` exceptions in the "Raises" section in the '
825
- 'docstring do not match those in the function body Raises values in the '
825
+ 'docstring do not match those in the function body. Raised exceptions in the '
826
826
"docstring: []. Raised exceptions in the body: ['FileNotFoundError']." ,
827
827
'DOC503: Method `B.func11` exceptions in the "Raises" section in the '
828
- 'docstring do not match those in the function body Raises values in the '
828
+ 'docstring do not match those in the function body. Raised exceptions in the '
829
829
"docstring: ['TypeError']. Raised exceptions in the body: ['TypeError', "
830
830
"'ValueError']." ,
831
831
'DOC503: Method `B.func13` exceptions in the "Raises" section in the '
832
- 'docstring do not match those in the function body Raises values in the '
832
+ 'docstring do not match those in the function body. Raised exceptions in the '
833
833
"docstring: ['ValueError', 'ValueError']. Raised exceptions in the body: "
834
834
"['ValueError']." ,
835
835
'DOC503: Method `B.func14` exceptions in the "Raises" section in the '
836
- 'docstring do not match those in the function body Raises values in the '
836
+ 'docstring do not match those in the function body. Raised exceptions in the '
837
837
"docstring: ['CustomError']. Raised exceptions in the body: "
838
838
"['exceptions.CustomError']." ,
839
839
'DOC503: Method `B.func15` exceptions in the "Raises" section in the '
840
- 'docstring do not match those in the function body Raises values in the '
840
+ 'docstring do not match those in the function body. Raised exceptions in the '
841
841
"docstring: ['CustomError']. Raised exceptions in the body: "
842
842
"['exceptions.m.CustomError']." ,
843
843
]
@@ -870,7 +870,7 @@ def testRaisesPy310plus(style: str, skipRaisesCheck: bool) -> None:
870
870
'DOC501: Method `B.func10` has "raise" statements, but the docstring does not '
871
871
'have a "Raises" section' ,
872
872
'DOC503: Method `B.func10` exceptions in the "Raises" section in the '
873
- 'docstring do not match those in the function body Raises values in the '
873
+ 'docstring do not match those in the function body. Raised exceptions in the '
874
874
"docstring: []. Raised exceptions in the body: ['ValueError']." ,
875
875
]
876
876
expected1 = []
0 commit comments