@@ -53,7 +53,7 @@ def test_getall_args(
53
53
multidict_object : MultiDict [int ],
54
54
tested_method_args : InvalidTestedMethodArgs ,
55
55
) -> None :
56
- with pytest .raises (TypeError ):
56
+ with pytest .raises (TypeError , match = r".*argument.*" ):
57
57
multidict_object .getall (
58
58
* tested_method_args .positional ,
59
59
** tested_method_args .keyword ,
@@ -64,7 +64,7 @@ def test_getone_args(
64
64
multidict_object : MultiDict [int ],
65
65
tested_method_args : InvalidTestedMethodArgs ,
66
66
) -> None :
67
- with pytest .raises (TypeError ):
67
+ with pytest .raises (TypeError , match = r".*argument.*" ):
68
68
multidict_object .getone (
69
69
* tested_method_args .positional ,
70
70
** tested_method_args .keyword ,
@@ -75,7 +75,7 @@ def test_get_args(
75
75
multidict_object : MultiDict [int ],
76
76
tested_method_args : InvalidTestedMethodArgs ,
77
77
) -> None :
78
- with pytest .raises (TypeError ):
78
+ with pytest .raises (TypeError , match = r".*argument.*" ):
79
79
multidict_object .get (
80
80
* tested_method_args .positional ,
81
81
** tested_method_args .keyword ,
@@ -86,7 +86,7 @@ def test_setdefault_args(
86
86
multidict_object : MultiDict [int ],
87
87
tested_method_args : InvalidTestedMethodArgs ,
88
88
) -> None :
89
- with pytest .raises (TypeError ):
89
+ with pytest .raises (TypeError , match = r".*argument.*" ):
90
90
multidict_object .setdefault (
91
91
* tested_method_args .positional ,
92
92
** tested_method_args .keyword ,
@@ -97,7 +97,7 @@ def test_popone_args(
97
97
multidict_object : MultiDict [int ],
98
98
tested_method_args : InvalidTestedMethodArgs ,
99
99
) -> None :
100
- with pytest .raises (TypeError ):
100
+ with pytest .raises (TypeError , match = r".*argument.*" ):
101
101
multidict_object .popone (
102
102
* tested_method_args .positional ,
103
103
** tested_method_args .keyword ,
@@ -108,7 +108,7 @@ def test_pop_args(
108
108
multidict_object : MultiDict [int ],
109
109
tested_method_args : InvalidTestedMethodArgs ,
110
110
) -> None :
111
- with pytest .raises (TypeError ):
111
+ with pytest .raises (TypeError , match = r".*argument.*" ):
112
112
multidict_object .pop (
113
113
* tested_method_args .positional ,
114
114
** tested_method_args .keyword ,
@@ -119,7 +119,7 @@ def test_popall_args(
119
119
multidict_object : MultiDict [int ],
120
120
tested_method_args : InvalidTestedMethodArgs ,
121
121
) -> None :
122
- with pytest .raises (TypeError ):
122
+ with pytest .raises (TypeError , match = r".*argument.*" ):
123
123
multidict_object .popall (
124
124
* tested_method_args .positional ,
125
125
** tested_method_args .keyword ,
0 commit comments