File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -29,7 +29,7 @@ def handler(_) -> werkzeug.Response:
2929
3030 httpserver .check_assertions ()
3131
32- with pytest .raises (ValueError ):
32+ with pytest .raises (ValueError ): # noqa: PT011
3333 httpserver .check_handler_errors ()
3434
3535
@@ -48,10 +48,10 @@ def handler2(_) -> werkzeug.Response:
4848
4949 httpserver .check_assertions ()
5050
51- with pytest .raises (ValueError ):
51+ with pytest .raises (ValueError ): # noqa: PT011
5252 httpserver .check_handler_errors ()
5353
54- with pytest .raises (OSError ):
54+ with pytest .raises (OSError ): # noqa: PT011
5555 httpserver .check_handler_errors ()
5656
5757 httpserver .check_handler_errors ()
@@ -88,5 +88,5 @@ def handler3(_):
8888 with pytest .raises (AssertionError ):
8989 httpserver .check ()
9090
91- with pytest .raises (ValueError ):
91+ with pytest .raises (ValueError ): # noqa: PT011
9292 httpserver .check ()
Original file line number Diff line number Diff line change @@ -36,5 +36,5 @@ def test_json_matcher_with_invalid_json(httpserver: HTTPServer):
3636
3737
3838def test_data_and_json_mutually_exclusive (httpserver : HTTPServer ):
39- with pytest .raises (ValueError ):
39+ with pytest .raises (ValueError ): # noqa: PT011
4040 httpserver .expect_request ("/foo" , json = {}, data = "foo" )
You can’t perform that action at this time.
0 commit comments