File tree 2 files changed +4
-4
lines changed
2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -558,7 +558,7 @@ def raises( # noqa: F811
558
558
func : Callable ,
559
559
* args : Any ,
560
560
** kwargs : Any
561
- ) -> Optional [ _pytest ._code .ExceptionInfo [_E ] ]:
561
+ ) -> _pytest ._code .ExceptionInfo [_E ]:
562
562
... # pragma: no cover
563
563
564
564
Original file line number Diff line number Diff line change @@ -187,7 +187,7 @@ def __call__(self):
187
187
188
188
assert refcount == len (gc .get_referrers (t ))
189
189
190
- def test_raises_match (self ):
190
+ def test_raises_match (self ) -> None :
191
191
msg = r"with base \d+"
192
192
with pytest .raises (ValueError , match = msg ):
193
193
int ("asdf" )
@@ -215,8 +215,8 @@ def test_raises_match(self):
215
215
def tfunc (match ):
216
216
raise ValueError ("match={}" .format (match ))
217
217
218
- excinfo = pytest .raises (ValueError , tfunc , match = "asdf" ).match ("match=asdf" )
219
- excinfo = pytest .raises (ValueError , tfunc , match = "" ).match ("match=" )
218
+ pytest .raises (ValueError , tfunc , match = "asdf" ).match ("match=asdf" )
219
+ pytest .raises (ValueError , tfunc , match = "" ).match ("match=" )
220
220
221
221
def test_match_failure_string_quoting (self ):
222
222
with pytest .raises (AssertionError ) as excinfo :
You can’t perform that action at this time.
0 commit comments